It's great that everyone is starting to share their code so let me share a tip that will make it more readable for all of us. The standard forum font, Verdan, looks nice when reading general text but doesn work so well with formatted listings. So... before pasting your code into a posting, click on the Font Face button (has a red A on it) and change the font name from Verdana to Courier New. Paste your code in between the two tags (they're surrounded by [ and ]) and it will look just spiffy!
I think the "Insert code" button also defaults to a monospaced font-it does on other forums I visit.
The white page icon with the "#" symbol is the "insert code" button.
Copy/paste your code between the [ code ] [ /code ] tags.
Personally I find the "code" blocks less readable because it tends to put the listing into a scroll box. YOu're right, though, it is monospaced.
I forgot about the scroll box if the text is longer than 5 or 6 lines.