google-code-prettify util
The code to prettify can be pasted on the text area below; then, press the prettify me button; if the uglify me button is used, the produced html simply escapes the html entities, so the code can be pasted directly on html pages.
Produced html (selected, just to copy to clipboard):
With the sunburst theme, the prettified code looks like: