Maybe you wondered about syntax-highlighted code in this blog but
blogger.com does not provide any tool for this. If you use Visual Studio, just try this CopySourceAsHtml add-in.
CopySourceAsHtml generates HTML source of your syntax-highlighted code in VS. You can select and copy your code as HTML to clipboard, so your syntax-highlighted code can be placed anywhere.
Here are my settings of CopySourceAsHtml add-in:
My "File Style" is:
Here is an example output: