9 useful JavaScript code highlighting scripts

Source: Internet
Author: User

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.

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.