关闭eclipse中所选的HTML错误 [英] Turn off selected HTML errors in eclipse

查看:631
本文介绍了关闭eclipse中所选的HTML错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近将Eclipse升级到Ganymede,版本3.4.2。

I recently upgraded my Eclipse to Ganymede, version 3.4.2.

现在,我的JSP中的HTML给我一大堆错误,比如参数值没有引号和缺少结束标签。这些页面工作正常,因为我留下这些东西的情况是他们是可选的情况。我们可以争论是否应该包含它们,但现在我正在尝试简单地更新一个页面,我不想重新访问整个页面。但是,当所有这些风格警告被标记为错误时,很难选出真正的错误。

Now it's giving me a ton of errors on the HTML in my JSPs for things like parameter values with no quotes and missing end tags. These pages work fine because the cases where I leave these things out are cases where they're optional. We can argue about whether I should include them, but right now I'm trying to make simple updates to a page and I don't want to revisit the entire page. But it's hard to pick out the real errors when all these style warnings are flagged as errors.

有没有办法关闭它?

我发现窗口>首选项> Web> HTML>验证列出了这样的错误,并将其从错误更改为忽略,但没有任何区别。显然,这不是什么控制。

I found Window > Preferences > Web > HTML > Validation that lists errors like these and changed them from "Error" to "Ignore", but it made no difference. Apparently this isn't what controls it.

(是的,是的,我知道,纯粹主义者的风格会说我应该包括所有可选的引号和结束标签往往不是因为我把它看成是混乱的,我真的不明白这样的理念:在这个文本中打字绝对没有任何功能上的区别,但根本不做任何事情,但你应该这样做,好吧,因为我这样说。)

(Yes, yes, I know, the style purists will say that I should include all the optional quotes and end tags. I often don't because I see them as clutter. I really don't understand the philosophy that says, "Typing in this text will make absolutely no functional difference, it doesn't do anything at all, but you should do it because, well, because I said so.")

推荐答案

你尝试过:



  1. 点击窗口>首。出现首选项窗口。

  2. 在首选项窗口中,单击 Workbench>编辑者

  3. 选择以下选项之一:


    • 时间
      语法验证,单击结构化
      文本编辑器
      并取消选中分析
      注释,同时键入

    • 要控制其他注释设置,
      单击注释并选择
      注释首选项

  1. Click Window > Preferences. A Preferences window appears.
  2. In the Preferences window, click Workbench > Editors.
  3. Select one of the following options:
    • To turn off real-time syntax validation, click Structured Text Editor and uncheck the Analyze annotations while typing box.
    • To control other annotation settings, click Annotations and select your annotation preferences.


从这个 Ganymede帮助页面

另一种方法: Window> ;首选项>验证。然后取消选中手册 Build 框旁边的 HTML语法验证器 JSP语法验证器

Another method: Window > Preferences > Validation. Then uncheck the Manual and Build boxes next to HTML Syntax Validator and JSP Syntax Validator.

这篇关于关闭eclipse中所选的HTML错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆