How to avoid spell checking of source code in MS Word?

John MacIntyre picture John MacIntyre · Feb 5, 2009 · Viewed 7.7k times · Source

When I copy source code to a word document or email, it would be nice if spell check could ignore source code token.

Is there an option to ignore blocks of text?

Answer

Eddie picture Eddie · Feb 5, 2009

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."