code syntax highlighter

2019-03-20 23:52发布

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

3条回答
走好不送
2楼-- · 2019-03-20 23:56

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

查看更多
虎瘦雄心在
3楼-- · 2019-03-21 00:12

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.

查看更多
该账号已被封号
4楼-- · 2019-03-21 00:19

I use SyntaxHighlighter - it's excellent.

查看更多
登录 后发表回答