如何抑制Aptana Studio 3中的某些CSS错误? [英] How can I suppress certain CSS errors in Aptana Studio 3?

查看:230
本文介绍了如何抑制Aptana Studio 3中的某些CSS错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Aptana Studio 3作为我的网站开发,我喜欢它,除了一些小的抓地力。其中一个困惑是Aptana决定将一些CSS参数视为无效,用一行大的红色X标记它们。当错误确实是错误时,这是​​有帮助的,但是一些完全有效但不是w3规范(cursor:none)的一部分的参数被标记为无效。

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.

我将忽略这些错误,但是在任何其他eclipse变体中,在项目中的任何地方的错误导致整个项目标记为有错误。然后,当我尝试发布它,我忽略,我得到警告。这是恼人和危险的 - 我可能会偶然忽略一个真正的警告。

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.

有任何方法来抑制Aptana / Eclipse中的具体错误,或者可能抑制所有CSS错误全局?

Is there any way to suppress specific errors in Aptana/Eclipse, or perhaps to suppress all CSS errors globally?

没有人知道一个w3有效的替代cursor:none;

Failing that, does anyone know a w3-valid alternative to cursor: none; that hides the mouse when it hovers over an element?

推荐答案

您可以为CSS错误添加过滤器,或完全关闭CSS验证。详情请参阅这里:

You can add filters for CSS errors, or turn off CSS validation altogether. Please see here for more information:


  1. 前往[偏好设定]> [Studio]>验证

  2. CSS节点

  3. 根据需要添加或编辑选项

http://wiki.appcelerator.org/display/tis/Adding+custom+error+ message + filters + to + the + Problems + View

这篇关于如何抑制Aptana Studio 3中的某些CSS错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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