From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Rogoff Subject: Re: text background when exporting as HTML Date: Tue, 10 Jan 2012 13:16:16 -0800 Message-ID: <4F0CAAA0.4070001@therogoffs.com> References: <4F0B3C27.5060106@therogoffs.com> <87y5tfi7r0.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------020603010308090001060409" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:58905) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rkj3O-0002g8-Ux for emacs-orgmode@gnu.org; Tue, 10 Jan 2012 16:16:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rkj3N-00035d-Fg for emacs-orgmode@gnu.org; Tue, 10 Jan 2012 16:16:22 -0500 Received: from oproxy9.bluehost.com ([69.89.24.6]:36264) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Rkj3N-00035E-3Z for emacs-orgmode@gnu.org; Tue, 10 Jan 2012 16:16:21 -0500 Received: from ip68-228-84-160.oc.oc.cox.net ([68.228.84.160] helo=therogoffs.local) by box775.bluehost.com with esmtpa (Exim 4.76) (envelope-from ) id 1Rkj3K-0002Sa-2O for emacs-orgmode@gnu.org; Tue, 10 Jan 2012 14:16:18 -0700 In-Reply-To: <87y5tfi7r0.fsf@ucl.ac.uk> 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 This is a multi-part message in MIME format. --------------020603010308090001060409 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit > Hi all. > > I'm using orgmode for outlines and documentation. Since no one else I > work with does this, I export to HTML which generally works > fine. However, I've got a problem with embedded code samples using > #+BEGIN_SRC / #+END_SRC. The faces for the source code are set up > for a black background. The exported HTML picked up the face colors, > but the background is white, so they're mostly unreadable. Is there a > (hopefully simple) way to tell the HTML export to specify a black > background for these blocks? > > FYI, emacs 23.3.1, REH Linux, orgmode 7.5 > > Thanks, > > David Check out the info manual: (org) CSS support This might be the easiest way. -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.92.1 Thanks Eric. I searched around the mailing list archives and found this: http://thread.gmane.org/gmane.emacs.orgmode/19605/focus=19633 I just added this to the beginning of my org file and it works great: #+STYLE: This matches the colors I use for the default font in emacs. David --------------020603010308090001060409 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
Hi all.

I'm using orgmode for outlines and documentation.  Since no one else I
work with does this, I export to HTML which generally works
fine. However, I've got a problem with embedded code samples using
#+BEGIN_SRC / #+END_SRC.   The faces for the source code are set up
for a black background.  The exported HTML picked up the face colors,
but the background is white, so they're mostly unreadable.  Is there a
(hopefully simple) way to tell the HTML export to specify a black
background for these blocks?

FYI, emacs 23.3.1, REH Linux, orgmode 7.5

Thanks,

 David
Check out the info manual: (org) CSS support
This might be the easiest way.
-- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.92.1
 
Thanks Eric.  I searched around the mailing list archives and found this:

http://thread.gmane.org/gmane.emacs.orgmode/19605/focus=19633

I just added this to the beginning of my org file and it works great:

#+STYLE:    <style> pre { background-color: #191919 } pre { color:#00FF00 } </style>

This matches the colors I use for the default font in emacs.

 David
--------------020603010308090001060409--