Add nine Javascript code highlighting scripts to your favorites and add javascript highlighting scripts to your favorites.

Source: Internet
Author: User

Add nine Javascript code highlighting scripts to your favorites and add javascript highlighting scripts to your favorites.

Code highlighting is useful, especially when you need to display your own code on a website or blog, or when you want to view or debug syntax errors for others. We can highlight the code so that readers can easily read the code block and improve the user's good experience in reading the code.

Currently, there are many free and useful code highlighting scripts. These scripts are mostly written in Javascript, and some are written in other languages (such as java, Phyton, or Ruby.

Next we recommend the nine most popular and practical Javascript code highlighting scripts.

1. SyntaxHighlighter

I believe this is the most common code highlight code. It supports multiple languages, and if the language you use 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 support in 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 highlighting script that supports only four programming languages: JavaScript, CSS, XML, and HTML.

8. Google Code pret.pdf

Google Code Prettify has a JavaScript model and CSS file that supports syntax highlighting on HTML pages.

9. JUSH

JUSH is another jQuery syntax highlighting plug-in that supports multiple programming languages, such as HTML, CSS, PHP, PY, and SQL.

In short, it is a wise choice for developers to add several highlighted code scripts.

Articles you may be interested in:
  • Highlighted JavaScript code
  • CSS code highlighted by Javascript
  • Insert html, php, SQL, and js Code in tinyMCE plug-in development and highlight the code
  • How to highlight JavaScript code in Regular Expressions
  • 2014 recommendation of the most popular JavaScript code highlight plug-ins

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.