views:

96

answers:

2

I have a couple of web-pages where I write out some code c#, and some XML. I'd like to find a way to highlight the syntax of the different content to make it easier to read - very much like here on Stackoverflow?

I already use a bit of jQuery so something that plugs into that would be a nice fit.

+2  A: 

Hm, I don't see where jQuery fits in there too well (because it is for DOM modification, not based on the textual content of the DOM).

Still, you might want to take a look at the very cool google-code-prettify. As far as I know, it is also used here at StackOverflow and it works like a charm for many languages. I use it myself and it's really easy to integrate.

mnemosyn
+1  A: 

You might want to look into Alex Gorbatchev's SyntaxHighlighter. It's one of the nicest formatters out there, and supports tons of syntaxes if you ever decide to format code in a new language.

Max Shawabkeh