I hate it when a FAQ/A peters out without resolution. So, because TextPad is my absolute favorite ASCII editor, I spent some time playing with Tidy.exe, and figuring out how to make it work in TextPad, with and without an external configuration file. (Below I have used 'single quotes' to delimit Parameter settings. They, are not part of the Parameter setting.)
Configure as per
http://textpad.com/forum/viewtopic.php?t=4768
Then change the Parameter setting to '-h $File', to see a short HELP blurb, OR
change the Parameter setting to '-help-config $File' to see a list of all CONFIGURATION OPTIONS, OR
change the Parameter setting to '-show-config $File' to see a list of the CURRENT CONFIGURATION SETTINGS.
If you want to use shortened command-line Parameters, you can set whatever parameter you desire in the Configure | Preferences | Tools | Tidy | Parameters: window, (e.g. Parameters= '-iq $File'). This command-line switch directs Tidy.exe to 'indent=yes, quiet=yes'. See the above Help blurbs from Tidy.exe for the complete list, (AND CORRECT USAGE), of command-line switches.
I wanted to use an external file to set my Tidy.exe switches because I forget what switch does what and etc. So, I created a file, named, "TidyCfg.txt", and placed it in the Samples subdirectory of the TextPad installation. Then I changed the Parameter setting to read, '-config "C:\Program Files\TextPad 4\Samples\TidyCfg.txt" $File'. The double quotes are necessary around the file path to avoid errors when TextPad parses the path. In the file, "TidyCfg.txt", I have:
indent: auto
write-back: yes
wrap: 0
quiet: yes
//show-errors: 0
clean: yes
//See TidyHelpShowConfig.txt
Notice the use of // to insert comments and disable commands.
Also notice the difference in the syntax from the command-line syntax.
See the HELP blurbs above from Tidy.exe to get a complete explanation for the above switches.
Thanks
JohnB 8)