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, e.g. XML (I guess that I can simply do
--output xml
for this) - Input a string directly without a file, e.g.
string:"body { color: red; }"
- Output the result directly without a file (so not like
> result.xml
) so I can do something likeRESULT = java -jar css-validator.jar...