Google Code Prettify

http://code.google.com/p/bcse/wiki/GoogleCodePrettify

Allows syntax highlighting of source code snippets.

Put your code inside <pre class="prettyprint"> </pre> tags.