I use Github gists, once you created it, it colors the code of most language nicely and you get an embed script with one click:

This is then pasted into the HTML view of the Blogger editor:

The final result:

Sorry for that many snips and so few words, but it is really easy