code syntax highlighter

白昼怎懂夜的黑 提交于 2020-01-01 03:24:06

问题


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


回答1:


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.




回答2:


I use SyntaxHighlighter - it's excellent.




回答3:


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



来源:https://stackoverflow.com/questions/1871949/code-syntax-highlighter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!