Do you know how to insert a "code block" in a Microsoft Word 2007 document so it will not be analyzed by the grammar che开发者_JAVA百科cker? I do no want to turn it off for the whole documents, just for some sections.
Can I do this via a custom style?
Select the text that you want the spelling and grammar checker to ignore.
On the Review tab, in the Proofing group, click Set Language.
Select the Do not check spelling or grammar check box.
You can also create a special style that is based on the selected text:
Right-click the selection, and then click Save Selection as a New Quick Style on the Styles shortcut menu.
Give the style a name — for example, code — and then click OK.
I done what the above guy said but created a macro:
- Highlight the text you want to strip of grammar checks
- Click the Macros (on the View ribbon)> Record macros > [give a name ] > Assign Macros to button > [Click the name you chose] > click add.
- Do what the Nescio (above) said (steps 1 to 3)
- Click macros > Stop Recording
Your button will be at the top of the page next to your floppy disc / save Icon
精彩评论