It'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.