views:

839

answers:

4

Searched but couldn't find this answer.

I've got some C# code I'm displaying on an HTML page. Can someone recommend for me a FREE JavaScript file that will colorize the C# code, like VS does?

+1  A: 

syntaxhighlighter

Darin Dimitrov
+3  A: 

Does it really have to be JavaScript? If so, you could use Prettify as used here on Stack Overflow.

For my blog posts etc, I use a code formatting tool which is controlled by CSS. It does make for a slightly clunky process, but I prefer the end results.

Jon Skeet
A: 

There's some code here

Rowland Shaw
+3  A: 

From http://code.google.com/p/syntaxhighlighter/

SyntaxHighlighter is here to help a developer/coder to post code snippets online with ease and have it look pretty. It's 100% Java Script based and it doesn't care what you have on your server.

If you are not required to use script have a look at this service

aku