We all hope that Blogger will soon evolve out of the stone age and provide bloggers with the ability to wrap blocks of html, c, java, et. al. in <code> tags for automatic entity conversion and formatting. Unfortunately, that has yet to happen and you will have to escape your HTML code by hand.
Or not...
There are several free HTML escapers floating around the net and I have even tried my hand at putting together one for my own use. What has to happen to display HTML code in a Blogger post is that all "<" and ">" characters need to be replaced with their HTML entity equivalents "<" and ">".
My JavaScript HTML Escape utility is located at http://pages.compender.com/htmlescape.htm. Feel free to try it out, examine the source and bookmark it for future use. I also added it to my new Link List element titled Tools here on the Compender blog.
-R