I'm not sure about the answer to your question but next time you need
to post a large amount of code can you paste it into something like
http://pastebin.ca/ or
http://pastie.org/ and then give as the link,
Some of the benefits of this include:
* Line Numbering
* Syntax Highlighting/Colouring
* Some anti virus systems/email clients try to remove them code from
the message or phase it and makes it look all messed up.