A great way to host/post code snippets is to use Github+Gist.
In short, you create a file with some code formatting, and then copy the embed link to post on your blog. It's really simple and really fast.
Here's my steps for getting from A to Z:
- Sign up or sign in to github.
- Go to the uber top of the page and click "gist".
- Write your code into the file.
- Select the file type to match your code.
- Save.
- On the left of the page will be the embed link.
- Copy that link and paste it as HTML in your blog post.
That's it.
In Blogger, I don't see the Gist until I "Preview", so keep that in mind.