* text background when exporting as HTML
@ 2012-01-09 19:12 David Rogoff
2012-01-10 21:10 ` Eric S Fraga
0 siblings, 1 reply; 3+ messages in thread
From: David Rogoff @ 2012-01-09 19:12 UTC (permalink / raw)
To: emacs-orgmode
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: text background when exporting as HTML
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
0 siblings, 1 reply; 3+ messages in thread
From: Eric S Fraga @ 2012-01-10 21:10 UTC (permalink / raw)
To: David Rogoff; +Cc: emacs-orgmode
David Rogoff <david@therogoffs.com> writes:
> 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
: using Org-mode version 7.8.03 (release_7.8.03.73.gd2b3d)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: text background when exporting as HTML
2012-01-10 21:10 ` Eric S Fraga
@ 2012-01-10 21:16 ` David Rogoff
0 siblings, 0 replies; 3+ messages in thread
From: David Rogoff @ 2012-01-10 21:16 UTC (permalink / raw)
To: emacs-orgmode
[-- 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 --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-01-10 21:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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).