简体   繁体   中英

W3C css-validator.jar: Where do I find documentation about local usage (parameters, etc.)?

I successfully installed W3C css-validator.jar locally as described here:

How can I validate CSS on internal web pages?

Now I'm looking for some documentation about how to use it.

At the moment I'm doing something like this:

java -jar css-validator.jar --output=soap12 file:source.css > result.xml

I'd like to accomplish the following:

  • Output in a different format, eg XML (I guess that I can simply do --output xml for this)
  • Input a string directly without a file , eg string:"body { color: red; }"
  • Output the result directly without a file (so not like > result.xml ) so I can do something like RESULT = java -jar css-validator.jar...

Any help on this is highly appreciated.

I didn't find a lot of information about this, but at least here are some configuration parameters:

http://jigsaw.w3.org/css-validator/manual.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM