How can I suppress certain CSS errors in Aptana Studio 3?
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 er开发者_StackOverflowror 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
I spent a long time trying to figure out what kind of regex expression Aptana was looking for. I was trying out \s
for spaces and tons of stuff like that. It would turn out that to surpress this specific error, all you need to do is make an entry under the "Tidy Validator" of the HTML validation section...
should trim empty <canvas>
PS. (just to make this post a little more worth it...) .*
means "match zero or more of any character... I didn't see the dots in the image on that page Igor linked to.
精彩评论