;############################################################################# ;# Author: Hesky-Data Software # ;# # ;# Description: HTML Tidy clip library. Tidy available at # ;# http://www.w3.org/People/Raggett/tidy/ # ;# # ;# Version: 1.00 # ;# # ;# Date: 15 Dec, 2001 # ;# # ;# Web site: http://www.hds-pad.com/ # ;############################################################################# [How to...] #showmessage Go to the HTML Tidy web site, download the tool and copy it to your Pad folder (%paddir%). [HTMLTidy web site] #run http://www.w3.org/People/Raggett/tidy [Items] #showmessage Capture... captures the output of the HTML Tidy toool, but does not change the original document.%cr%Update... tidies the current HTML document. You may view a log file. [#%] [Capture Tidy output] #set %f%=%curfile% #savedocument #newdocument #getdosoutput %paddir%\tidy.exe %f% [Update current document] #if #Extractfileext(%curfile%)<>.htm #then #if #Extractfileext(%curfile%)<>.html #then #goto @ask @start #savedocument #run %paddir%\tidy.exe -f%sp%c:\tidyerrs.txt%sp%-m%sp%%curfile% #set %res%=#Promptdlg(Do you want to view the log file?,4) #cmd FileReopenCmd #if %res%=6 #then #opendocument c:\tidyerrs.txt #goto @end @ask #if #PromptDlg(This document has not an HTML file extension!%cr%Do you really want to tidy it?,4)=6 #then #goto @start #else #goto @end