Posting source code to Blogger
March 20th, 2006 at 1:49 pmIt’s very important for programming oriented bloggers to be able to post code to their blogs.
To post code, use the <pre> tag, placing <pre> before the code section, and </pre> after the code section. The tags should be placed in the ‘Compose’ section of the post editor, not in the ‘Edit Html’ section.
def greet puts "Enjoy posting code !" end
You can also use the <code> tag in combination with <pre>. Experiment with these tags to see what works best for you.
Related posts:

March 28th, 2006 at 14:37
Better yet, use <pre><code>…</code></pre>
March 24th, 2009 at 08:48
thanks, it was helpfull to me..