W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2000

How do you run TIDY?

From: Eric Richards <e.richards@clear.net.nz>
Date: Fri, 24 Mar 2000 11:47:53 -0600
To: "HTML tidy" <html-tidy-request@w3.org>
Cc: <html-tidy@w3.org>
Message-ID: <OFFEAFC8E3.1CBB9665-ON862568A0.000B9184@rfdinc.com>

Hi All
Below are text from two BATCH  files, then some comments,
I'm not sure if I would pass the Microsoft batch file exam,
but these files do work for me.

================= run_tidy.bat ==============================
check_it fileName html

rem <check_it><space><FILENAME><space><EXTENSION>==================== check_it.bat ==========================
find /v /n "" %1.%2 > %1-%2_num.txt
copy %1.%2 oldver.htm

tidy.exe -f %1-%2_notes.txt -modify %1.%2

copy %1.%2 new_%1.%2
copy oldver.htm %1.%2
del oldver.htm

===================== comments =============================
To run this as you would need of course "TIDY.EXE"
also the file to be checked, it might be "NEW.HTML"

To make the batch files you would need to make two text files with "note
pad" copy & paste
the text given above save the work and change the file name to the two
file names given.

Edit the RUN_TIDY batch file and replace "fileName" with the name of your
file  like NEW
( you might also have to change HTML to HTM )

Click onto the file "RUN_TIDY.BAT"

"RUN_TIDY.BAT will run the batch file "CHECK_IT.BAT"
from the text given it will make %1= fileName and %2=HTMLAs it is running "CHECK_IT.BAT"
A file called "fileName-html_num.txt"
Then it copies "fileName.html" to "oldver.htm"
Then it runs tidy
& makes notes to file called "fileName-html_notes.txt"
& fixes errors and modifies "fileName.html"
Then it copies you modified version to "new_fileName.html"
Then it copies your original html file back to your original
Then it deletes the file it made called "oldver.htm"

The reason it makes a text file with numbered lines is if you are a
that does not have a HTML editor.

======================== Question =============================
Is there some other and better way maybe with click-on style "buttons"  to
change TIDY options easer?

It would be great if TIDY printed to file the whole line that had any
on it,

From Eric
Received on Friday, 24 March 2000 14:14:36 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:47 UTC