The jQuery syntax highlighting plug-in supports various program source code syntax coloring and brightening.

Source: Internet
Author: User
Tags lexer

1) highlightjs

Highlight. js can color various program source code syntaxes on the page. Supported languages include:

• Python
• Ruby
• Perl
• PHP
• XML
• HTML
• CSS
• Django
• Javascript
• VBScript
• Delphi
• Java
• C ++
• RenderMan (RSL and RIB)
• SQL
• SmallTalk
• Axapta
• 1C
• Ini
• Diff
• DOS. bat
• Bash

2) google-code-prettasks

Google Code pretloads is a JavaScript library used for syntax coloring and highlighting of the source Code on various pages. Google Code Prettify is very small, and only 85kb after decompression. Supports most common languages. You do not need to specify a language.

3) SyntaxHighlighter

SyntaxHighlighter is a code coloring tool for Web pages. It can be used to color multiple languages, HTML, CSS, Javascript, C, JAVA, and other programming languages. YUI, which was first seen in Yahoo, was also a free software. Recently, it was found that it had been compiled by goolge on the official website.

It can highlight various program source code syntaxes on the webpage. Supports various popular programming languages: C #, CSS, C ++, Delphi, Java, JavaScript, PHP, Python, Ruby, SQL, Visual Basic, XML/HTML.

4) Chili-jQuery Plugin

Chili is the jQuery code highlighting plug-in.

5) pygments

Pygments is a Python library for formatting and highlighting code. It contains four modules:

  1. Lexer-parses the code into a token stream. Each token contains two attributes: The current token type and the current token value. Pygments supports many languages. For details, refer to Appendix.
  2. Filters-the tokens parsed by lexer are sent to the filter. You can modify the attributes or values of certain tokens based on the conditions.
  3. The final output of the formatter-token stream is based on the definition of formater. The output is in the format defined for implementation, such as HTML, LaTex, or RTF.
  4. Style-defines the output style. For example, different types of tokens are displayed in different colors or bold.

6) ultraviolet

Ultraviolet is a Textpow-based syntax highlighting engine. Ultraviolet is also an independent command line utility and Ruby library.

7) GESHi

GeSHi (Generic Syntax Highlighter) is used to highlight various source codes on the HTML page. Supports more than 60 languages: PHP, HTML, C, Java, Java5, C #, Actionscript, Delphi, C ++, Groovy, Javascript, Perl, PL/SQL, Ruby, Python, SQL, XML, etc, it is easy to integrate into systems such as Dokuwiki, Mambo, phpBB, WordPress, and WikkaWiki.

8) snippet

Snippet is a cool jQuery syntax highlighting plug-in. Based on the SHJS script, you can find the source code on SourceForge. Snippet provides a simple and quick way to easily bring you a highlighted syntax prompt. it can be run in IE 6, IE 7, IE 8, FF 3.6, Chrome 6.0, Safari 5.0, and Opera 10.62.

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.