Friday, March 23, 2007

Making your Code pretty on a browser


google-code-prettify is a Javascript module that makes your code look Pretty on a browser.

You include a CSS file and a prettify.js script and there you have syntactically highlighted code.

It works for a number of languages including C and friends, Java, Python, Bash, SQL, HTML, XML, CSS, Javascript, and Makefiles. It works passably on Ruby, PHP and Awk and a decent subset of Perl, but, because of commenting conventions, doesn't work on Smalltalk, Lisp-like, or CAML-like languages.

Get it here

No comments: