HTML Tidy
5.4.0
The HTACG Tidy HTML Project
|
To get a list of available options, use:
tidy -help
To get a list of all configuration settings, use:
tidy -help-config
To read the help output a page at time, pipe it to a pager, e.g.,:
Single-letter options other than -f
may be combined; for example:
tidy -f errs.txt -imu foo.html
The most convenient way to configure Tidy is by using separate configuration file.
Assuming you have created a Tidy configuration file named config.txt (the name and extension don’t matter), you can instruct Tidy to use it via the command line option -config config.txt
; for example:
tidy -config config.txt file1.html file2.html
Alternatively, you can name the default config file via the environment variable named HTML_TIDY
, the value of which is the absolute path for the config file.
You can also set config options on the command line by preceding the name of the option immediately (no intervening space) with the string "`--`"; for example:
tidy --break-before-br true --show-warnings false
You can find Quick Reference documentation for your version of Tidy that describe the full set of configuration options on our API and Quick Reference Page.
The following is an example of a Tidy config file.