Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I often write documents that contain code snippets in them. I created a custom code style so I can quickly differentiate words or paragraphs that are code.

However, C++ code is not easy on Word's spell checker. How do I disable the spell checker from marking all my funnyVariableNames as misspelled?

share|improve this question
add comment

1 Answer

  1. Right click on the style in the Quick Style Gallery
  2. Click on Modify
  3. In the bottom left corner of the popup click on the Format menu
  4. Click on Language
  5. Select the check box "Do not check spelling or grammer"
  6. Click OK on the Language dialog box
  7. Click OK on the Modify Style dialog box

The spell checking will not immediately disappear. But new words you create in that style will not be checked. Restarting Word works too.

share|improve this answer
    
Unfortunately this doesn't work (at least not in 2003 and 2007). Applying such a style to an existing paragraph will perform spell checking. Haven't found a way to work around that yet... –  RedGlyph Aug 31 '13 at 18:08
    
It does work with character style however, but make sure to select a language before checking "Do not check spelling or grammar" or it won't be taken into account. It's easy to verify that by looking at the style specs, look for a "Do not check spelling or grammar, English (United Kingdom)" (the language doesn't matter of course). –  RedGlyph Aug 31 '13 at 18:10
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.