emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: David Rogoff <david@therogoffs.com>
To: emacs-orgmode@gnu.org
Subject: Re: text background when exporting as HTML
Date: Tue, 10 Jan 2012 13:16:16 -0800	[thread overview]
Message-ID: <4F0CAAA0.4070001@therogoffs.com> (raw)
In-Reply-To: <87y5tfi7r0.fsf@ucl.ac.uk>

[-- Attachment #1: Type: text/plain, Size: 1106 bytes --]

> 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

[-- Attachment #2: Type: text/html, Size: 1649 bytes --]

      reply	other threads:[~2012-01-10 21:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-09 19:12 text background when exporting as HTML David Rogoff
2012-01-10 21:10 ` Eric S Fraga
2012-01-10 21:16   ` David Rogoff [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F0CAAA0.4070001@therogoffs.com \
    --to=david@therogoffs.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).