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 ...