The author of this article is Gavin McLeod, a hardcore Web Geek trapped in the electronic world championship. The article lists 15 syntax highlighting tools that help developers quickly code and optimize code. Each highlighting tool has its own features. (The following is the compilation content)
Developers and stubborn Code geeks are well aware of Code Syntax Highlighter (hereinafter referred to as "Code Syntax highlighting tool") as a form of second-level symbols to facilitate Code writing in a structured or markup language. Some code highlight editors combine multiple syntax highlighting functions, such as spelling check and code folding. The syntax highlighting tool can play a major role in the use of the overall policy: improve the readability and context of the text, especially when the number of pages of the Code is large. It also helps developers quickly locate the bug source during programming. No matter whether you are a code geek or a coders, the code syntax highlighting tool provided by the following for you can make the code you write look new. 1. Prism is a lightweight tool with a size of KB. It can be easily integrated into CSS and JavaScript files and runs quickly. It has already been used in Dabblet (an interactive CSS site) to beautify a lot of code, so Prism is very stable. The new programming language can also be added. With the plug-in architecture being used, the functionality of the new language will be continuously improved; the style and feeling of appearance can be designed through CSS. 2. Rainbows Rainbow is a lightweight tool written in JavaScript only 1.4KB. It only needs to use the JavaScript model in languages where it is necessary to highlight the display to keep things simple. Similarly, the color and font can be fully customized using CSS theme support. 3. Snippet is a jQuery plug-in built on the top of the SHJS script to highlight the source code in the HTML file. It supports many types of scripting languages: JavaScript, SQL, PHP and Ruby. It contains 39 built-in unique color schemes, which can be continuously transformed and debugged. 4. Geshi this is a highly custom syntax highlighting tool that can be used to better display code snippets on webpages. Geshi was developed and applied to the phpBB forum software, but it is still used separately in terms of 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 helps a developer/programmer easily publish code snippets online, and the code looks great. To put it bluntly, it is a 100% highlighted display tool based on JavaScript, so there is no need to consider anything else on the server. Supports multiple programming languages. The compressed core library size is only 11 kb. However, Syntax Highlighter does not have the ability to write highlighted code or provide users with the ability to write source code. 6. Google Code pret.pdf this is a script used on the Google Code website. This script can automatically identify the programming language in use for corresponding beautification. You can also customize it through CSS. 7. hightlight. js Hightlight. javascript can be used without complex steps, because it is highly automated: Find out code blocks, check the language, and highlight it. It has started to support third-party applications and provides Firefox extensions for viewing code, but there is no syntax highlighted. 8. SHJS: Syntax Highlighting in JavaScript SHJS is a JavaScript program that can highlight the source code section in the HTML document. The file is highlighted on the client through a web browser using SHJS. This gives SHJS a function, that is, the ability to highlight the source code is written in different languages. 9. Quick Highlighter the online highlighting tool provides many encoding languages. You can select multiple options to collectively highlight these encoding languages. You can choose to check or not check the Code before highlighting the Code, Combine Style, HTML Code, Highlight built-in keywords, data type, Strict Mode, and excess Wrap text. 10. Ultraviolet is a syntax highlighting engine running on Ruby. It supports more than 50 programming languages and more than 20 topics. 11. pygments: Python Syntax Highlighter, a Syntax highlighting tool built in Python, supports most programming languages and multiple output formats, it can also be used as a command line tool or a class library. 12. Lighter for MooTools Lighter is a free syntax highlighting tool specially developed for MooTools. At the beginning of creating Lighter, MooTools developers applied many functional features in the framework structure. It is as simple as adding a separate script to a webpage. When you select the element you want to highlight, Lighter will automatically process the remaining parts. 13. CodePress is a network-based source code editor with a syntax highlighting tool written in JavaScript. as you type continuously in your browser, the color of the text changes in real time. In addition, it also provides code snippets, Automatic completion, shortcuts, and multi-window functions. 14. Beauty of Code the jQuery syntax highlighting plug-in uses the syntax highlighting in Alex Gorbatchev, but there is a difference: it can generate more xhtml-compatible Code. 15. jush JavaScript Syntax Highlighter can be used in client-side Syntax highlighting programs. Supported languages include HTML, CSS, JavaScript, PHP, SQL, HTTP, SMTP protocol, and php. ini and Apache configuration. Original article: CodeGeekz