If you have tried to post a few lines of code on your Blogger post, you must have faced the problem. The best solution I have found till date is a JavaScript code syntax highlighter. Its written by Alex Gorbatchev and can be found here –
http://alexgorbatchev.com/wiki/SyntaxHighlighter
And if you cannot upload the js files on your blog server (like a normal Blogger blog), you can link the files from here –
http://alexgorbatchev.com/pub/sh/
Choose the version you want or http://alexgorbatchev.com/pub/sh/current/ for automatically call the current available version.
NJoy !!!