[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] html export with htmlized code blocks [SOLVED, but...]

From: Dirk-Jan C. Binnema
Subject: Re: [Orgmode] html export with htmlized code blocks [SOLVED, but...]
Date: Mon, 25 May 2009 21:04:36 +0300
User-agent: Mutt/1.5.18 (2008-05-17)

Dave already gave the excellent #+BEGIN_SRC tip and I have happily
included it in my workflow:

One small remaining question...

he html for the code blocks looks something like:

<pre class="src src-emacs-lisp">
<span style="color: #666666;">;; </span><span style="color: #bbbbbb; 
font-style: italic;">some comment

So, the code has all of it's CSS inline -- which is nice because that
way people who read through aggregators or feed readers also get the

*however* the <pre class="src src-emacs-lisp"> expects to find its style
information in <head>. And that part is not used by RSS / aggregators --
I am using a dark color theme in my emacs, which is reflect in the
colors in use for code: the whole <pre> block should
have a black background, so people can read my light-yellow code...

So, either I'd like the <pre> to have the styles inline (like the rest
of the code, I think this is the nicer solution) *or* make the 'pre'
element do something like:
   "<pre class="src src-emacs-lisp" style="color:#edebc4; 

Sure, I could hack it but has anyone already solved this problem?

Thanks in advance!!

Op Tue 19 May 2009, om 23:07 (+0300) schreef Dirk-Jan C. Binnema:

> Op Tue 19 May 2009, om 21:10 (+0200) schreef Dan Davison:
> > 
> > I think what you are describing is achieved by
> > 
> > * some heading
> > #+BEGIN_SRC perl
> > print "hello, world!";
> > #+END_SRC
> > 
> > Then you just export the buffer as HTML.
> > 
> > See 
> > 
> > http://orgmode.org/manual/Literal-examples.html#Literal-examples

Dirk-Jan C. Binnema                  Helsinki, Finland
e:address@hidden           w:www.djcbsoftware.nl
pgp: D09C E664 897D 7D39 5047 A178 E96A C7A1 017D DA3C

reply via email to

[Prev in Thread] Current Thread [Next in Thread]