Original article: 9 useful JavaScript code highlighting scripts
Translated from: webdesignbooth
From: http://www.qianduan.net/9-useful-javascript-syntax-highlighting-scripts.html
Code highlighting
It is important, especially when we want to show our code in a blog. Enable in blogCode highlighting
To facilitate reading the code block.
There are many free and usefulCode highlighting
Script. Most of these scripts are written by javascripts, and some are written in other languages, such as phyton or Ruby.
Today, let's take a look at the most used9 JavaScript code highlighting scripts
Right.
1. syntaxhighlighter
I believe this is the most common code highlight code. It supports many different languages. If your language is not supported by default, you can easily create a new "brush ".
2. shjs
Shjs is short for syntax highlighting in JavaScript. It comes from GNU
Source code highlighting language. And supports many programming languages. According to tests, shjs supports mainstream browsers such as Firefox 2 +, ie 6 +, and opera 9.6 +,
Safari 3.2 and chrome 1.0 +.
3. beautyofcode
Beautyofcode is a jquery code highlight plug-in. It uses syntaxhighlighter scripts and makes them better compatible with XHTML.
4. Chili
Chili is a jquery code highlighting plug-in. It is bundled with many languages and supports multiple setting options.
5. Lighter. js
Lighter. JS is a free mootools code highlighting plug-in. Using lighter. JS is as simple as simply adding a simple script to your page.
6. Highlight. js
Highlight. JS is a very easy-to-use highlight script that supports multiple programming languages. It also has some useful plug-ins that can be easily deployed to other CMS, forums, or blogs.
7. dlhighlight
Dlhighlight is a simple code highlight script. It only supports four programming languages: JavaScript, CSS, XML, HTML.
8. Google Code pret.pdf
Google Code prettify provides a javascript module and CSS file to display the highlighted code of the source code on the HTML page. This is the script used for code.google.com.
9. jush
Jush is another jquery code highlighting plug-in that supports HTML, CSS, PHP, Py, SQL, and other languages.