如何在Eclipse中禁止PHP的警告? [英] How do I suppress warnings in Eclipse for PHP?

查看:111
本文介绍了如何在Eclipse中禁止PHP的警告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Eclipse中,由于开始标签位于另一个文件中,因此没有启动标记(< div> )会收到警告。我如何禁止这个警告来阻止我的问题窗口?

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?

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

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?

推荐答案

你也可以在每个项目基础上进行设置。转到

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

Project -> Properties -> Validation

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

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

这篇关于如何在Eclipse中禁止PHP的警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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