Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

code syntax highlighter [closed]

I'm looking for an auto syntax highlighter. when I specify the starting point and the ending point of the code the syntax highlighter should automatically identify the type of code (e.g. sql, vb, cs, JavaScript etc) and highlight accordingly.

Please let me know if anyone did this before, or if you know any site which does that.

I am using it for asp.net vs2008.

--vamsi

like image 314
vamsivanka Avatar asked Dec 09 '09 06:12

vamsivanka


3 Answers

I highly recommend google-code-prettify which is used here on Stack Overflow (I also use it on my blog - it is very simple to use and works well).

A Javascript module and CSS file that allows syntax highlighting of source code snippets in an html page.

like image 159
Andrew Hare Avatar answered Nov 07 '22 19:11

Andrew Hare


I use SyntaxHighlighter - it's excellent.

like image 24
Chris Fulstow Avatar answered Nov 07 '22 17:11

Chris Fulstow


There is one very simple and powerfull jquery plugin:
http://code.google.com/p/syntaxhighlighter/

like image 1
ykhrustalev Avatar answered Nov 07 '22 18:11

ykhrustalev