It’s very handy when we want to demonstrate a computer code on a webpage and we want to do this in a nice-looking way using colored syntax highlighting. In this article we present a free instant highlighter which converts our code to a readable HTML code.
Syntax highlighting is usually a feature of text editors that are used for programming, scripting, or markup languages. The feature displays the source code, in different colors and fonts according to the preferences of the user. This feature facilitates writing in a structured language such as a programming language or a markup language as both structures and syntax errors are visually distinct. Highlighting does not affect the meaning of the text itself; it is intended only for human readers but it serves to reinforce it.
Some syntax highlighters also include spell checkers or text indentators which organize the code in a nice-looking tree-view.
There’s a great website which allows us to convert many programming and markup languages to readable HTML code: markup.su/highlighter and tohtml.com.
All we have to do is inupt our code in the text area, and press the convert button to generate the HTML code for us.
The program can auto-detect the programming language or we can manually select between the supported languages:
There are many available color schemes to choose from:
Active4D, All Hallow’s Eve, Amy, Blackboard, Cobalt, Dawn, Eiffel, Espresso Libre, IDLE, LAZY, Mac Classic, MagicWB (Amiga), Pastels on Dark, Slush & Poppies, Solarized (dark), Solarized (light), SpaceCadet, Sunburst, Twilight, Zenburnesque, iPlastic