From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Code blocks (partially) inherit buffer colors Date: Thu, 28 Feb 2013 22:29:09 -0700 Message-ID: <871ubzn0wq.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36428) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBIXc-00048Y-VR for emacs-orgmode@gnu.org; Fri, 01 Mar 2013 00:29:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UBIXb-0005go-Pd for emacs-orgmode@gnu.org; Fri, 01 Mar 2013 00:29:56 -0500 Received: from mail-pa0-f47.google.com ([209.85.220.47]:56249) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBIXb-0005gZ-JH for emacs-orgmode@gnu.org; Fri, 01 Mar 2013 00:29:55 -0500 Received: by mail-pa0-f47.google.com with SMTP id bj3so1593019pad.20 for ; Thu, 28 Feb 2013 21:29:54 -0800 (PST) In-Reply-To: (Richard Stanton's message of "Fri, 1 Mar 2013 03:56:12 +0000") 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: Richard Stanton Cc: "emacs-orgmode@gnu.org" 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 > background color as my Emacs buffer at the time I exported. For > example, if I export > > ----------- > > #+begin_src python > a = 5 > #+end_src > > ------------ > > the code block in the resulting HTML file has a very pale background, > except for the characters "a" and "5", both of which are displayed > with a dark blue background that looks like it's the same as the > background color in my Emacs buffer. This looks rather odd... > > I can work around this problem by changing the color-theme in my Emacs > 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