跳过 Microsoft Word 2007 代码语法检查

发布于 2024-08-09 12:19:20 字数 106 浏览 3 评论 0原文

您知道如何在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

冧九 2024-08-16 12:19:20
  1. 选择您希望拼写和语法检查器忽略的文本。

  2. 在“审阅”选项卡的“校对”组中,单击“设置语言”。

  3. 选中“不检查拼写或语法”复选框。

您还可以基于所选文本创建特殊样式:

  1. 右键单击所选内容,然后在“样式”快捷菜单上单击“将所选内容另存为新快速样式”。

  2. 为样式指定一个名称(例如,代码),然后单击“确定”。

  1. Select the text that you want the spelling and grammar checker to ignore.

  2. On the Review tab, in the Proofing group, click Set Language.

  3. Select the Do not check spelling or grammar check box.

You can also create a special style that is based on the selected text:

  1. Right-click the selection, and then click Save Selection as a New Quick Style on the Styles shortcut menu.

  2. Give the style a name — for example, code — and then click OK.

韶华倾负 2024-08-16 12:19:20

我按照上面的人所说的做了,但创建了一个宏:

  1. 突出显示要去除语法检查的文本
  2. 单击宏(在视图功能区上)>记录宏> [给出名字]>将宏分配给按钮 > [点击您选择的名称]>单击添加。
  3. 按照 Nescio(上面)所说的操作(步骤 1 到 3)
  4. 单击宏 >停止录制

您的按钮将位于页面顶部软盘/保存图标旁边

I done what the above guy said but created a macro:

  1. Highlight the text you want to strip of grammar checks
  2. Click the Macros (on the View ribbon)> Record macros > [give a name ] > Assign Macros to button > [Click the name you chose] > click add.
  3. Do what the Nescio (above) said (steps 1 to 3)
  4. Click macros > Stop Recording

Your button will be at the top of the page next to your floppy disc / save Icon

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文