w:noProof (No Proofing)

Excludes the run from spell-checking and grammar-checking.

Parent elements

Description

w:noProof instructs the application not to apply spell-checking or grammar-checking to the run. It is an on/off toggle property defined in ECMA-376 Part 1 §17.3.2.21.

Typical uses include code samples, proper names, or foreign-language fragments embedded in a document that would otherwise trigger spurious spell-check errors. For language-specific spell-checking control, prefer w:lang which directs the checker to use a specific language dictionary.

Attributes

Attribute Type Possible Values Description
w:val ST_OnOff true, 1, on (proofing disabled) / false, 0, off (proofing enabled). Omitting the attribute is equivalent to true. Toggles proofing exclusion on or off.

Examples

<w:r>
  <w:rPr>
    <w:noProof/>
  </w:rPr>
  <w:t>printf("Hello, world!");</w:t>
</w:r>