Tag: Syntax

A Lightweight Syntax Highlighter: Prism

When displaying code in a web-page, highlighting its syntax accordingly helps so much in easily reading it. There are various syntax highlighters around (see 11 Syntax Highlighters To Beautify Code Presentation) and Lea Verou has released a lovely new one, named Prism, that is built with modern web standards in mind. ...


Lightweight JavaScript Code Syntax Highlighter: Rainbow

There are several code syntax highlighters and most of them handle the job well. For a very lightweight solution, Rainbow is a fresh one which is only 1.4kb and can be extended with ease. It is only needed to use the JS module for the language to be highlighted for keeping things small. Also, the colors and fonts ...