I just found a great post on how to format code sections in a WordPress blog:
http://www.thomasclaudiushuber.com/blog/2008/01/07/give-your-blog-code-the-visual-studio-look
Now the code in my blog should look a lot prettier.
static void Foo() { // This is a comment Console.WriteLine("Print something to the console."); }