[Top][All Lists]

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

Re: [Orgmode] html export with htmlized code blocks

From: Sebastian Rose
Subject: Re: [Orgmode] html export with htmlized code blocks
Date: Tue, 19 May 2009 22:20:18 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux)

Hi Dirk,

if you _really_ do this (it's not first of april, is it?) it's about time
to join this list ;-)

...and take a look into

  * the great Org-mode manual:

  * the tutorials on Worg:

  * and type `M-x org-export-htmlize-generate-css RET'



"Dirk-Jan C. Binnema" <address@hidden> writes:
> Hi all,
> I sometimes use blocks of code in my org-files; currently, to make them
> look nice, I put the code in a buffer with their major mode (e.g, a blog
> perl in a buffer with perl-mode), then convert it to html with htmlize,
> and copy the result html back in an org-mode html block.
> <pre></pre>
> I seems that I should be able to automate that a bit... ie., maybe
> something like:
> #+BEGIN_CODE(perl)
> print "hello, world!";
> And *somehow* make that execute the steps I mentioned, and get something
> like; so I'd need to cut-out only the stuff within <pre></pre> the
> htmlize-generated html (it generates top-level html stuff which we
> should ignore I guess).
> <pre>
> <span class="cperl-nonoverridable">print</span> <span class="string">"hello, 
> world!\n"</span>;</pre>
> But I'm not really sure if that would be the best approach. Did anyone
> do something like this before? Any tips?
> Thanks,
> Dirk.

reply via email to

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