I am putting together a Windows Phone 7 tutorial ... and then I came across the issue of how to include code in the blog posts. Here is the solution.
First get the code nicely formatted - the following tools may help
Then include the prettyprint function into your Blogspot template. The following Link show how:
You have alter the template you can use the following command to include code in the HTML code with the pre-tag and the class=prettyprint.
Alternatively you can convert source code into HTML:
more links at