views:

269

answers:

2

Sometimes, for what ever reason, I copy source code into either a word document, or an email ... which in Outlook, I believe, is using Word.

Anyway, it would be nice if I could spell check the english part of my document without having to manually ignore each and every source code token.

Is there an option, or some type of style formatting I can set, which will tell the spell checker to ignore it?

+4  A: 

This one's easy. Select the code you pasted, go to Tools -> Language (or in the latest version of Word, the equivalent on the ribbon) and select the checkbox "Don't check."

Eddie
THANK GOD! I am sure there are MANY people that need to know this. You should tell random people you meet about this someone will hug you before the day is over, maybe even by you a beer.
CJCraft.com
+1  A: 

Highlight the code/text in the document go to the Tools Menu>Language>Set Language. There will be a "Do not check spelling or grammar" checkbox

this will mark the area so that the spellchecker skips over it

Anthony