code语法高亮 [英] code syntax highlighter

查看:108
本文介绍了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.

这篇关于code语法高亮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆