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

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

You must log in to answer this question.

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