如何在 Eclipse for PHP 中抑制警告?

发布于 2024-09-25 11:37:28 字数 203 浏览 0 评论 0原文

在 Eclipse 中,我收到没有开始标记 (

) 的警告,因为开始标记位于另一个文件中。如何抑制此警告以使其远离我的“问题”窗口?

我知道在 Java 中我可以做@SuppressWarning,但我不知道如何在 php 中做。我假设有,基于 Eclipse 中 php 类型提示的可用性,但也许不是?

In Eclipse, I'm getting warnings for not having a start tag (<div>) because the start tag is in another file. How do I suppress this warning to keep it out of my "Problems" window?

I know in Java I could do @SuppressWarning, but I don't know how for php. I assume that there is, based on the availability of php type hinting in Eclipse, but maybe it isn't?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

固执像三岁 2024-10-02 11:37:28

您还可以根据每个项目进行设置。转到

Project -> Properties -> Validation

并根据需要修改您的设置。你可以抑制很多警告,尤其是 HTML ->文档类型 ->位置无效!

You may also set this on a per project base. Go to

Project -> Properties -> Validation

and modify your settings as you like. You can suppress a lot of warnings, especially HTML -> Document Type -> Invalid Location!

紧拥背影 2024-10-02 11:37:28

转到窗口>偏好。在网络>下HTML 文件 >验证时您会发现“缺少开始标记:”和“缺少结束标记:” 在此处输入图像描述

Go to Window > Preferences. Under Web > HTML Files > Validation you'll find "Missing start tag:" and "Missing end tag:" enter image description here

电影里的梦 2024-10-02 11:37:28

窗口 -> 首选项 -> 验证 -> 暂停所有验证器

也会使 Eclipse 更快:)

window->preferences->validation->suspend all validators

will also make eclipse way faster :)

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