From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Stanton Subject: Code blocks (partially) inherit buffer colors Date: Fri, 1 Mar 2013 03:56:12 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_CE09F36B1F891947ACDD158E233F555A04C293exmail10bhaasucbe_" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39912) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBHae-0001Ya-Uj for emacs-orgmode@gnu.org; Thu, 28 Feb 2013 23:29:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UBHad-0006eS-EM for emacs-orgmode@gnu.org; Thu, 28 Feb 2013 23:29:00 -0500 Received: from gateway-b.haas.berkeley.edu ([128.32.222.40]:54496) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBH4w-0007ew-Fn for emacs-orgmode@gnu.org; Thu, 28 Feb 2013 22:56:14 -0500 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: "emacs-orgmode@gnu.org" --_000_CE09F36B1F891947ACDD158E233F555A04C293exmail10bhaasucbe_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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 a= s my Emacs buffer at the time I exported. For 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, excep= t 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 buff= er before exporting, but is there a better solution? Thanks. Richard Stanton --_000_CE09F36B1F891947ACDD158E233F555A04C293exmail10bhaasucbe_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

When I export a code block to HTML, I’ve notic= ed that some (but not all) of the characters in the resulting HTML file hav= e the same background color as my Emacs buffer at the time I exported. For = 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, except for the characters “a” and “5= 221;, both of which are displayed with a  dark blue background that lo= oks 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

--_000_CE09F36B1F891947ACDD158E233F555A04C293exmail10bhaasucbe_--