Sunday, September 2, 2007

code blocks with Courier in Blogger

Posting Code Blocks / Snippets with Courier monospace font in Blogger is easy by using <code> and </code> tags in HTML mode.
for i in *.pdf; do xpdf "$i"; done
To preserve white space (e.g. important for the indenting of Python code), use <pre> and </pre>.

1 comment:

Vallerie said...

This is great info to know.