Share 15 code syntax highlighting tools-related tips

Source: Internet
Author: User
Tags forum software mootools in python

The writer is Gavin McLeod, a hardcore web geek trapped in the "World of Warcraft" video. The article lists 15 syntax highlighting tools that help developers quickly encode and optimize code, each with its own features. (the following are compiled content)

Developers and stubborn code geeks know that Code Syntax highlighter (hereinafter referred to as the "Code Syntax highlighting tool") is a form of level two notation that makes it easy to write in a structured language or markup language. Some code highlighting editors incorporate several syntax highlighting features, such as spell checking and code folding. The syntax highlighting tool can play a larger role in the use of the overall strategy: improving the readability and context of text, especially in the case of more code pages. It also helps developers quickly locate bug sources in the programming process.

Whether you're a code geek or a bum-bit farmer, the following code syntax highlighting tool guarantees you to make your code a little more brand-name.

1. Prism

Prism is a compact lightweight tool that is only 1.5KB in size and can be easily integrated into CSS and JavaScript files, running fast. has been used in Dabblet (an interactive CSS site) to beautify a lot of code, so that prism is very stable. New programming languages can also be added to the use of this plug-in architecture, the new added language functionality will continue to improve, the appearance of style and use of the feeling can be designed through CSS.


2. Rainbows

Rainbow is a 1.4KB lightweight tool written in JavaScript script. It just needs to use the JavaScript model to keep things simple when it's necessary to highlight the language. Similarly, colors and fonts can be fully customized through CSS theme support.


3. Snippet

Snippet is a jquery plugin that is built at the top of the Shjs script to highlight the source code in the HTML file. It supports many kinds of scripting languages: JavaScript, SQL, PHP, and Ruby, and so on. It contains 39 built-in unique color patterns that can be constantly transformed and debugged.


4. GeSHi

This is a highly customizable syntax highlighting tool that you can use to better display snippets in your Web pages. GeSHi has been developed and later applied to phpBB forum software, but is still used separately for functional features. In addition, this syntax highlighting tool supports almost all popular programming languages, such as ActionScript, ASP, C, JAVA, PHP, Ruby, and SQL.


5. Syntax Highlighter

Syntax Highlighter helps a developer/farmer easily publish code snippets online, and the code looks pretty good. To put it bluntly, it's a 100%-based highlighting tool that doesn't have to worry about anything else on the server. Support a variety of programming languages, compressed core library only 11KB size. However, Syntax highlighter does not have the ability to write highlighting code, nor does it provide users with the ability to write source code.


6. Google Code prettify

This is the script used on the Google code site. This script can automatically identify the programming language being used and beautify it accordingly. You can also customize it through CSS.


7. Hightlight.js

Hightlight.js basically does not need to take complex steps to use, because it is very high degree of automation: Find the code block, detection language, highlighting the line. It has started supporting third-party applications and provides a Firefox extender for viewing code, but no syntax highlighting.


8. Shjs:syntax highlighting in JavaScript

SHJS is a JavaScript program that can highlight the source code passages in an HTML document. Files using SHJS will be highlighted by the Web browser on the client. This gives SHJS the ability to highlight that the source code is written in a different language.


9. Quick Highlighter

This online highlighting tool offers a number of coding languages, and you can select multiple options to highlight these coded languages collectively. You can choose to check or not check the code before highlighting the code, Combine Style, HTML code, highlight built-in keywords, data types, Strict mode, and wrap excess text.


Ultraviolet

Ultraviolet is a syntax highlighting engine running on Ruby that supports more than 50 programming languages and more than 20 topics.


Pygments:python Syntax highlighter.

This syntax highlighting tool is built in Python, supports most programming languages, multiple output formats, and can be used as a command-line tool or as a class library.


Lighter for MooTools

Lighter is a free syntax highlighting tool, developed specifically for MooTools. MooTools developers used many of the architectural features of the framework at the beginning of the creation of lighter. It's as simple as adding a separate script to a Web page, selecting the element you want to highlight, and lighter will automatically handle the rest.


Codepress

Codepress is a web-based source code editor with a syntax highlighting tool written in JavaScript that changes the color of text as you type in a browser. In addition, it has code snippets, automatic completion, shortcuts, and multiple window functions.


Beauty of Code

This jquery syntax highlighter uses the syntax highlighting in Alex Gorbatchev, but one thing is different: it can produce more XHTML-compliant code.


Jush JavaScript Syntax Highlighter

JavaScript Syntax highlighter can be used in client-side syntax highlighting programs, supported by HTML, CSS, JavaScript, PHP, SQL, HTTP, SMTP protocol, php.ini, and Apache configuration.


Original: Codegeekz

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.