Pygments! Pygments is a cool code colorizer. Its written in python and very easy to use. I was able to create a simple django project that used Pygments to colorize python code and here is the outcome. You can download the source code here