Code highlightingIt is useful, especially when you need to display your own code on a website or blog, or check or debug syntax errors for others. We can supportCode highlightingSo that readers can easily read code blocks and improve the user's good experience in reading code.
Currently, there are many free and usefulCode highlightingScript. These scripts are mostly written in Javascript, and some are written in other languages (such as java, Phyton, or Ruby.
Today, we recommend the most popular and practical 7Javascript code highlighting scriptRight.
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 the GNU source code highlighted language. And supports many programming languages. SHJS supports mainstream browsers such as Firefox 2 +, IE 6 +, 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.
In short, add severalCode highlightingThe script is a wise choice for friends who develop code earlier. If you discover or develop scripts highlighted by other codes, you are welcome to recommend it to the fire school.
Http://www.ued163.com /? P = 1639