跳过 Microsoft Word 2007 代码语法检查
您知道如何在 Microsoft Word 2007 文档中插入“代码块”以免被语法检查器分析吗?我不想为整个文档关闭它,只想为某些部分关闭它。
我可以通过自定义样式来做到这一点吗?
Do you know how to insert a "code block" in a Microsoft Word 2007 document so it will not be analyzed by the grammar checker? I do no want to turn it off for the whole documents, just for some sections.
Can I do this via a custom style?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
选择您希望拼写和语法检查器忽略的文本。
在“审阅”选项卡的“校对”组中,单击“设置语言”。
选中“不检查拼写或语法”复选框。
您还可以基于所选文本创建特殊样式:
右键单击所选内容,然后在“样式”快捷菜单上单击“将所选内容另存为新快速样式”。
为样式指定一个名称(例如,代码),然后单击“确定”。
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:
Your button will be at the top of the page next to your floppy disc / save Icon