Javascript Code Colorizer

Sat 05 January 2008 by Thejaswi Puthraya

Javascript Code Colorizer

Recently, I came across Pygments based Javacript code colorizer called Pygments Code Colorizer here. Very easy to use and supports lots of languages.

Just add the

<script src="http://www.pygments.com/js/init.js"></script>

and a pre tag that contains the code to be highlighted. That's it!!! Code highlighting on the fly using the power of Pygments. Another reason to rejoice is that Pygments.com is powered by Django.