Submit A Resource
Contact Us
About Functionn

Subscription Options

Subscribe By Email (265+)



Jun 7, 2012

Author: Hirvesh Posted At: 6/07/2012 Tags: , , , , ,

Highlight.js - Code Syntax Highlighting For 51 Languages With 20 Style Themes & Node.js Support

Highlight.js highlights syntax in code examples on blogs, forums and in fact on any web pages. It's very easy to use because it works automatically: finds blocks of code, detects a language, highlights it.

This is not only convenient but also allows highlighting for code examples marked up with writing syntaxes like Markdown where there is no way to specify HTML class easily.

The library knows 51 languages and is bundled with 20 style themes.  The library now works not only in a browser but also with node.js. It is installable with npm install highlight.js.

It also a new unique feature (apparently) among syntax highlighters which is highlighting HTTP headers and an arbitrary language in the request body. The most useful languages here are XML and JSON both of which highlight.js does support.

You might also be interested in Rainbow - A Code Syntax Highlighting Library Written In JavaScript.

Requirements: None
License: BSD License

Daily Posts, Be Updated, Subscribe:

Want Free Web Resources? Enter Your Email And We'll Send It To You - Daily! (265+ Subscribers)

Yup, it's that straight forward! Enter your email address below and we'll send you the latest web resources to your inbox, everyday. We don't do spam. Ever.

Trending Posts On Functionn This Week


Other Interesting Resources:


Post a Comment


Recent Posts

Popular Categories

Popular Components

Popular Licenses