Home > Web Front-end > JS Tutorial > body text

Decisive collection of 9 Javascript code highlighting scripts_javascript skills

WBOY
Release: 2016-05-16 15:21:36
Original
1208 people have browsed it

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

Currently, there are many free and useful code highlighting scripts. Most of these scripts are written in Javascript language, and some are written in other languages ​​​​(such as java, Phyton or Ruby).

The following are recommended 9 most popular and practical Javascript code highlighting scripts.

1.SyntaxHighlighter

I believe this is the most common code highlighting code. It supports many different languages, and if the language you use is not supported by default, you can easily create new "brushes".

2.SHJS

SHJS is the abbreviation of Syntax Highlighting in Javascript. It comes from the GNU source highlighting language. And supports many programming languages. After testing, 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 highlighting plug-in. It uses the SyntaxHighlighter script and makes it more XHTML compatible.

4.Chili

Chili is a jQuery code highlighting plug-in. It comes bundled with support for a wide variety of languages ​​and supports multiple setup options.

5.Lighter.js

Lighter.js is a free MooTools code highlighting plug-in. Using lighter.js is as simple as adding a simple script to your page.

6.Highlight.js

highlight.js is a very easy-to-use highlighting 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 only supports 4 programming languages: JavaScript, CSS, XML, HTML.

8.Google Code Prettify

Google Code Prettify has a JavaScript model and CSS files that support syntax highlighting in 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, collecting several code highlighting scripts is a wise choice for development friends. I hope you all like it.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!