OK, well I’m sure this is documented hundreds of other places, but I am mainly putting it here for my reference. If you want to post source code on a WordPress blog, surround your code with the following tags (making sure to replace lang with the supported language code:
[/sourcecode]
It will give you syntax highlighting and a few quick shortcuts so you can copy and paste code. The languages supported in the language attribute are:
