I want a single program that recursively finds all *.js, *.html and *.css files in a given directory and JSLints, and W3C validates them respectively and prints out all errors found. Also it separately JSLints and CSS validates anything found inside script and style tags embedded in the html files. I also want this to validate other less common web contents too if possible using the W3C tools. The tools should also have option for passing in common JavaScript frameworks for JSLint (e.g. it should work fine with latest JQuery). Where I can buy such a tool?
The best way to validate your code is by using the W3C validation tools. CSS Validator: This validator checks the CSS validity of web documents in HTML, XHTML etc. There are plenty of browser extensions that will test the page you're viewing against the W3C validators.
The W3C CSS Validation Service can be used to check the correctness (validity) of W3. CSS. The Validation Service was created by the W3C to help Web developers validate CSS.
You can validate both HTML and CSS files. You can use any commercial software package or free online application, such as the following World Wide Web Consortium (W3C) validators: W3C CSS Validator at http://jigsaw.w3.org/css-validator/ W3C HTML Validator at http://validator.w3.org/
The Markup Validator is a free service by W3C that helps check the validity of Web documents. Most Web documents are written using markup languages, such as HTML or XHTML . These languages are defined by technical specifications, which usually include a machine-readable formal grammar (and vocabulary).
You could build your own solution in Ant, which works across most platforms. I think your HTML would need to be XHTML though.
CSE Validator - http://www.htmlvalidator.com/
and
Aptana Studio 3 URL: http://aptana.com/products/studio3
If you're using Visual Studio 2010, you can try the Chirpy extension:
http://www.weirdlover.com/2010/05/31/chirpy-has-a-new-home-and-new-features/
This extension lets you specify JS compilers, lint and minifiers for files in your solution (if you're using VS).
I am building this open source tool, but some polish is still needed:
http://pypi.python.org/pypi/vvv
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With