简体   繁体   English

我在哪里可以找到一个简单的基于JavaScript的HTML语法荧光笔?

[英]Where can I find a simple JavaScript based HTML syntax highlighter?

Where can I find a simple JavaScript based HTML syntax highlighter? 我在哪里可以找到一个简单的基于JavaScript的HTML语法荧光笔?
Simpler is better, and I don't need any line numbers or tricks, just added colors. 更简单更好,我不需要任何行号或技巧,只需添加颜色。

If it is the same colors as dreamweaver, even better! 如果它与dreamweaver颜色相同,那就更好了!

There's also google's prettify.js, which is the syntax highligher used on this site: 还有google的prettify.js,这是本网站使用的语法高点:

http://code.google.com/p/google-code-prettify/ http://code.google.com/p/google-code-prettify/

Here are some : 这里有一些 :

You can also try prism.js . 你也可以试试prism.js I have used many of them and this is by far the simplest one according to me. 我已经使用了很多这个,这是迄今为止最简单的一个。

If you are using Dojo a nice one is dojox.highlight extension. 如果你正在使用Dojo,那就是dojox.highlight扩展。

Demo page is here . 演示页面在这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM