code语法高亮

问题描述:

我在找一个自动语法高亮显示。当我指定的起点和code的语法高亮的终点应自动识别code(例如SQL,VB,CS的JavaScript等)的类型,并相应地突出。

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.

我使用它asp.net VS2008。

I am using it for asp.net vs2008.

- vamsi

--vamsi

我强烈推荐的 google- code-prettify 它用在这里对堆栈溢出(我还用它在我的博客 - 这是非常简单易用,并且效果很好)。

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).

一个模块的Javascript和CSS文件,允许源$ C ​​$ C片段的语法高亮显示在HTML页面。

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