From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Stanton Subject: Re: Code blocks (partially) inherit buffer colors Date: Fri, 1 Mar 2013 05:31:08 +0000 Message-ID: References: <871ubzn0wq.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBIYq-00058d-1X for emacs-orgmode@gnu.org; Fri, 01 Mar 2013 00:31:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UBIYo-0006D9-Gs for emacs-orgmode@gnu.org; Fri, 01 Mar 2013 00:31:11 -0500 Received: from gateway-b.haas.berkeley.edu ([128.32.222.40]:46579) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBIYo-0006C0-CF for emacs-orgmode@gnu.org; Fri, 01 Mar 2013 00:31:10 -0500 In-Reply-To: <871ubzn0wq.fsf@gmail.com> Content-Language: en-US List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: "emacs-orgmode@gnu.org" Thanks, Eric. -----Original Message----- From: Eric Schulte [mailto:schulte.eric@gmail.com]=20 Sent: Thursday, February 28, 2013 9:29 PM To: Richard Stanton Cc: emacs-orgmode@gnu.org Subject: Re: [O] Code blocks (partially) inherit buffer colors Richard Stanton writes: > When I export a code block to HTML, I've noticed that some (but not > all) of the characters in the resulting HTML file have the same=20 > background color as my Emacs buffer at the time I exported. For=20 > example, if I export > > ----------- > > #+begin_src python > a =3D 5 > #+end_src > > ------------ > > the code block in the resulting HTML file has a very pale background,=20 > except for the characters "a" and "5", both of which are displayed=20 > with a dark blue background that looks like it's the same as the=20 > background color in my Emacs buffer. This looks rather odd... > > I can work around this problem by changing the color-theme in my Emacs=20 > buffer before exporting, but is there a better solution? > > Thanks. > > Richard Stanton See the documentation of the `org-export-htmlize-output-type' variable. -- Eric Schulte http://cs.unm.edu/~eschulte