Code highlighting is useful, especially when you need to display your own code in a Web site or blog, or when you are viewing or debugging a grammar error. We can highlight the code so that the reader can easily read the code block and increase the user's good experience in reading the code.
At present, there are a lot of free and useful code highlighting scripts. Most of these scripts are written in JavaScript language and some in other languages (such as Java, Phyton, or Ruby).
The most popular and practical 9 JavaScript code highlighting scripts are recommended below.
1.SyntaxHighlighter
I believe this is the most common code highlighting code. It supports many different languages, and if you use a language that is not supported by default, you can simply create a new "brush".
2.SHJS
SHJS is a shorthand for syntax highlighting in JavaScript. It comes from the GNU source highlighting language. and supports a wide variety of programming languages. Tested SHJS supports mainstream browsers such as Firefox, IE 6+, Opera 9.6+, Safari 3.2 and Chrome 1.0+.
3.beautyOfCode
Beautyofcode is a jquery code highlighting plugin. It uses syntaxhighlighter scripts and makes them better compatible with XHTML.
4.Chili
Chili is a jquery code highlighting plugin. It bundles a number of language support and supports multiple settings options.
5.lighter.js
Lighter.js is a free mootools code highlighting plugin. It's OK to use lighter.js to simply add a simple script to your page.
6.highlight.js
Highlight.js is a very easy to use highlighting script that supports a variety of programming languages. It also has some very useful plug-ins that can be easily deployed to other CMS, forums or blogs.
7.DlHighlight
Dlhighlight is a simple code highlighting script that supports only 4 programming languages: JavaScript, CSS, XML, HTML.
8.Google Code prettify
Google Code Prettify has a JavaScript model and CSS file that supports syntax highlighting in HTML pages.
9.JUSH
Jush is another jquery syntax highlighting plugin that supports a variety of programming languages, such as HTML, CSS, PHP, PY, and SQL.
In short, the collection of several code highlighting script for the development of Friends is a wise choice, I hope you like.