Main Contents

Configure Aptana to ignore CSS Hacks

April 18, 2008

Aptana is a client-side web development IDE shipped as both a standalone app and Eclipse plugin. HTML, CSS, and JavaScript editors with code completion and validation. Document your JS with Javadoc like syntax for inline context help. Supports major JS libraries. It’s a pain that MooTools uses NaturalDocs, so no IDE love for me with my favorite lib… but no other IDE supports NaturalDocs either.

The CSS validator is based on CSSTidy. It comes with some exclusion rules to prevent false positives and you can add your own. I use a couple of CSS hacks/filters, namely “*property” for all IE and “_property” for IE6/5. These regular expressions will prevent the validator from reporting errors related to the hacks. Enter them one at a time at Preferences -> Aptana -> Editors -> CSS -> Validation:

.*unrecognized : \*[-a-z]*: [%\(\)-_'"./?0-9a-zA-Z ]*; for .*
.*unrecognized : \*zoo 1; for .*
.*unrecognized : : for null.*
.*Property _[-a-z]* doesn’t exist.*
.*Parse error - Unrecognized .*

Filed under: Tools |

Leave a comment

Login