Like there is a code sample inserter in the stackoverflow's WYSIWYG text editor (see image here)
I want such a formatter to show a code snippet in an html page with colored keywords and strings etc. Please help.
Like there is a code sample inserter in the stackoverflow's WYSIWYG text editor (see image here)
I want such a formatter to show a code snippet in an html page with colored keywords and strings etc. Please help.
Check http://code.google.com/p/syntaxhighlighter/ it's pretty popular and awesome.
Geshi is quite awesome too: http://qbnz.com/highlighter/demo.php
This maybe? http://plugins.jquery.com/plugin-tags/syntax
Check out google code prettify: http://code.google.com/p/google-code-prettify/