Using Tidy for validation only

Hi,

I am not interested in using Tidy for fixing HTML.
I am only interested in getting number of errors and warnings.


tidy.exe --char-encoding utf8 --show-errors 255 --show-warnings true 
"W:\external-tools\tidy\myfile.htm" --error-file 
"W:\external-tools\tidy\myfile.htm.err" --output-file 
"W:\external-tools\tidy\myfile.htm" --output-file 
"W:\external-tools\tidy\myfile.htm.out"


Preferebly, I don't want Tidy to spend time patching HTML.
I really only want it to output errors + warnings into the error file.
If possible, I am actually only interested in error+warning counts :)


As it is, it seems Tidy only reports errors for HTML it can not fix.
I deduce this from the fact that the HTML it shows in command
line after the call appear to have been modified and "fixed".
It does not include those fixed errors in its error count.


best regards
Thomas



 

Received on Friday, 22 October 2010 13:23:41 UTC