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:
- 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.
- 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.
- 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.
- 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.