如何在Aptana Studio 3中抑制某些CSS错误? [英] How can I suppress certain CSS errors in Aptana Studio 3?
问题描述
我使用Aptana Studio 3进行Web开发,除了几个小小的抓地力之外,我也喜欢它。其中一个原因是Aptana决定将某些CSS参数视为无效,在该代码行上用一个大的红色X表示。当错误真的是一个错误时,这是有帮助的,但是一些完全有效但不是w3规范的一部分的参数(例如,cursor:none)被标记为无效。
我只会忽略这些错误,但像任何其他eclipse变体一样,项目中的任何一个错误导致整个项目标记为有错误。然后,当我尝试发布它时,我会收到警告,我忽略它。这样既烦又危险 - 我可能会意外地忽略一个真正的警告。
有没有办法抑制Aptana / Eclipse中的特定错误,或者可能压制所有CSS错误全球?
没有,有没有人知道一个w3有效的替代光标:无;当鼠标悬停在元素上时,它会隐藏鼠标?
您可以添加CSS错误的过滤器,或关闭CSS验证。请参阅这里了解更多信息:
- 转到首选项> Studio>验证
- 点击CSS节点
- 根据需要添加或编辑选项
http://wiki.appcelerator.org/display/tis/Adding +自定义+错误+消息+过滤器+到+问题+视图
I use Aptana Studio 3 for my web development, and I love it except for a few small gripes. One of these gripes is that Aptana decides to treat some CSS parameters as invalid, marking them with a big red X on that line of code. This is helpful when the error is really an error, but some parameters that are perfectly valid but not a part of the w3 spec (cursor: none, for example) get flagged as invalid.
I would just ignore these errors, but as in any other eclipse variant, an error anywhere in a project results in the whole project marked as having errors. Then I get warnings whenever I try to publish it, which I ignore. This is both annoying and risky-- I could be ignoring a real warning by accident.
Is there any way to suppress specific errors in Aptana/Eclipse, or perhaps to suppress all CSS errors globally?
Failing that, does anyone know a w3-valid alternative to cursor: none; that hides the mouse when it hovers over an element?
You can add filters for CSS errors, or turn off CSS validation altogether. Please see here for more information:
- Go to Preferences > Studio > Validation
- Click on the CSS node
- Add or edit options as appropriate
http://wiki.appcelerator.org/display/tis/Adding+custom+error+message+filters+to+the+Problems+View
这篇关于如何在Aptana Studio 3中抑制某些CSS错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!