Resolute Collection 9 JavaScript code highlighting script _javascript tips

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.