Prevent Spell Check for Code

Is there any way to mark a section of an email to prevent SpellCheck from being done in that section. I am a programmer, and it is annoying that when I send code snippets, they are spell checked along with the rest of the message.

I would prefer something like MS Word’s “Style” model, where I can define a style (part of which includes the ability to turn off spell check), and apply that style to that section of my document.