views:

189

answers:

2

I'm working on a code generation tool where the output is display in a tag and wondered if anyone knew of a CSS stylesheet that would format the output. My rendering engine is Javascript based and I'd like to continue perform all operations of rendering client side.

+3  A: 

You could take a look at http://alexgorbatchev.com/wiki/SyntaxHighlighter . It is web based, open source, and uses separate CSS style sheets for formatting and highlighting. Not sure if it is exactly what you want, but maybe worth a look.

Casey
+4  A: 

JavaScript isn't client side? Or am I not understanding your question?

you may want to look at Google Prettify, which IIRC, is what StackOverflow uses

Neil N
Thanks Neil - Prettify will do the trick.
David Robbins