Some solutions for posting code in blogs
Geshi is discussed here:
http://stackoverflow.com/questions/113440/displaying-code-in-blog-posts
A few takes on the syntaxhighlighter project, which uses JavaScript to format the code:
http://alexgorbatchev.com/wiki/SyntaxHighlighter
http://ditrans.blogspot.com/2009/03/using-syntaxhighlighter-20-on-blogger.html
http://www.hanselman.com/blog/BestCodeSyntaxHighlighterForSnippetsInYourBlog.aspx
Prettify:
http://code.google.com/p/google-code-prettify/
Some ideas for hosting JavaScript:
http://soswitcher.blogspot.com/2009/05/blogger-host-javascript-file-for-free.html
http://www.corpseofattic.com/2008/10/how-to-host-javascript-for-blogger.html
http://adsense-day.blogspot.com/2009/06/alternative-javascript-hosting-for.html