Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any single tool that runs JSLint, W3C validator (both CSS3 and HTML5) on files in a given directory? [closed]

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?

like image 991
pathikrit Avatar asked Apr 22 '11 22:04

pathikrit


People also ask

How do you validate W3C standards?

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.

Is there a CSS validator?

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.

How do I validate an HTML document?

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/

What is the W3C validator used for?

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).


4 Answers

You could build your own solution in Ant, which works across most platforms. I think your HTML would need to be XHTML though.

like image 171
Dan Blows Avatar answered Nov 15 '22 15:11

Dan Blows


CSE Validator - http://www.htmlvalidator.com/

and

Aptana Studio 3 URL: http://aptana.com/products/studio3

like image 21
JURU Avatar answered Nov 15 '22 15:11

JURU


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).

like image 23
rkaregaran Avatar answered Nov 15 '22 16:11

rkaregaran


I am building this open source tool, but some polish is still needed:

http://pypi.python.org/pypi/vvv

like image 26
Mikko Ohtamaa Avatar answered Nov 15 '22 15:11

Mikko Ohtamaa