Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to ignore spelling and grammar for certain text styles in Word 2007?

Some of the stuff I'm writing is pre-formatted text that looks like this and usually has stuff like if (str.length() != 3) which will give me the squiggly lines on misspelled words like the str in there.

share|improve this question
up vote 14 down vote accepted

Quick Styles will help you here.

First, select the text for which you want to ignore spelling in your document. Right click and select Styles > Save selection as a new Quick Style. Then click on Modify and a new window will open named "Create new style from Formatting". Set your font type, font size etc. and then click on the Format button which stands on the lower left corner of the window. Select Language option and check "Do not check spelling or grammar" option. Click OK, and OK again. Now you have a style which wil not check spelling or grammar for the font style you determined.

share|improve this answer
    
Perfect, thanks. – Nitrodist Jun 2 '10 at 14:08
    
You're welcome. – Mehper C. Palavuzlar Jun 2 '10 at 14:11
2  
I had to close open to remove the underlining. Still works a treat. – Tyronomo Aug 30 '13 at 6:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .