How to use HTML Tidy with TextPad
Posted: Thu Nov 20, 2003 4:10 pm
HTML Tidy is a free program that checks the syntax of your HTML files and optionally pretty prints them. See the HTML Tidy Library Project, for more information. To configure it as a syntax checking tool in TextPad:
1. Download the Console Tidy Program.
2. Unzip it to a folder of your choice.
3. Start TextPad.
4. From the Configure menu, choose Preferences.
5. Select Tools.
6. Click Add and choose Program.
7. Browse for tidy.exe and click Open.
8. Click Apply.
9. Click the + next to Tools and select Tidy.
10. Change the Parameters to -errors -quiet $File
11. In the Regular Expression box, type ^line \([0-9]+\) column \([0-9]+\)
12. Set the File register to blank, the Line register to 1 and the Column register to 2.
13. Click OK.
This tool can be run against the active HTML document. Double click any error message to go to the incorrect code in the document.
Tidy has a huge number of options, which can be passed via its command line, or through a configuration file. See the project documentation for details.
Keith MacDonald
Helios Software Solutions
1. Download the Console Tidy Program.
2. Unzip it to a folder of your choice.
3. Start TextPad.
4. From the Configure menu, choose Preferences.
5. Select Tools.
6. Click Add and choose Program.
7. Browse for tidy.exe and click Open.
8. Click Apply.
9. Click the + next to Tools and select Tidy.
10. Change the Parameters to -errors -quiet $File
11. In the Regular Expression box, type ^line \([0-9]+\) column \([0-9]+\)
12. Set the File register to blank, the Line register to 1 and the Column register to 2.
13. Click OK.
This tool can be run against the active HTML document. Double click any error message to go to the incorrect code in the document.
Tidy has a huge number of options, which can be passed via its command line, or through a configuration file. See the project documentation for details.
Keith MacDonald
Helios Software Solutions