showing source code in blog posts

Dieter Plaetinck <dieter-7FYLOmueu/[email protected]> Sun, 31 Oct 2010 23:08:15 +0100
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
Hi all,
is anyone showing source in pyblosxom blog posts?
I'm in the process of migrating from a drupal blog to pyblosxom (*)
But one stumbling block is currently showing source code.
On Drupal the common solution is using geshi, a php-based syntax
hilighter.
an example to see how it looks like:
http://dieter.plaetinck.be/tweaking_lighttpd_stat_performance_with_fcgi-stat-accel
The code is something like:
<code lang="c">
some_C_code_here
<h1>some html</h1>
some_more_C
</code>

With pyblosxom, the <code> tag is just ignored and everything in
between is parsed as if it's normal html.
There are also syntax schemes for other languages like php, but this is
not even my main concern, if I could just make pyblosxom escape the
stuff between <code> tags and maybe put a <pre>..</pre> around it, it
would already be a nice step forward.

How can I solve this?

Thanks,
Dieter


(*) I'm writing a tool which is pretty useful for this:
http://github.com/Dieterbe/drupal-to-pyblosxom

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev