Yes there is an insert code button in the editor however you may notice that its hard to read wide lines and when you post a long bit of code its hard to follow.
In general we prefer only snippets of code inthe forums - the FAQ suggests 20 lines maximum but we have been tolerating more. As peoples problems get more complex though we are seeing a lot more large chunks of code in questions and sometimes repeated again in follow ups.
So please start to use pastebins for code more than 20 lines or the mods are likely to delete the posts
Suggested locations:
http://www.rafb.net/paste/
http://pastebin.com/
http://xna.multigan.com/pastebin
http://pastebin.ca
http://xna.pastebin.ca
The ZBuffer - News and information for XNA and Managed DirectX