JQuery syntax highlighting plug-in, code coloring, Page code coloring

Source: Internet
Author: User
Tags lexer

1) highlightjsHighlight. js can color various program source code syntaxes on the page. Supported languages include PythonRubyPerlPHPXMLHTMLCSSDjangoJavascriptVBScriptDelphiJavaC ++ RenderMan (RSL and RIB) SQLSmallTalkAxapta1CIniDiffDOS. batBash 2) google-code-prettifyGoogle Code pret is a JavaScript library used to syntax coloring and highlighting 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) SyntaxHighlighterSyntaxHighlighter 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 PluginChili is the jQuery code highlighting plug-in. 5) pygmentsPygments 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) ultravioletUltraviolet is a Textpow-based syntax highlighting engine. Ultraviolet is also an independent command line utility and Ruby library. 7) GESHiGeSHi (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) snippetSnippet 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.

Related Article

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.