in reply to How do I display code using a pretty print type to the browser?
Syntax::Highlight::Engine::Kate is reasonably good.