commands.sh

tidy

all

Clean up and pretty print HTML, XHTML, and XML files. Note: `tidy` cannot preserve original indentation.

More info →

Options (4)

-i, --indentboolean

Enable indentation, wrapping lines in 100, saving to `output.html`

Example: tidy {{[-i|--indent]}} y {{[-w|--wrap]}} 100 {{[-o|-output]}} {{path/to/output.html}} {{path/to/file.html}}
-w, --wrapboolean

Enable indentation, wrapping lines in 100, saving to `output.html`

Example: tidy {{[-i|--indent]}} y {{[-w|--wrap]}} 100 {{[-o|-output]}} {{path/to/output.html}} {{path/to/file.html}}
-oboolean

Enable indentation, wrapping lines in 100, saving to `output.html`

Example: tidy {{[-i|--indent]}} y {{[-w|--wrap]}} 100 {{[-o|-output]}} {{path/to/output.html}} {{path/to/file.html}}
-mboolean

Modify an HTML file in-place using a configuration file

Example: tidy -config {{path/to/configuration}} {{[-m|-modify]}} {{path/to/file.html}}

Examples (3)

Pretty print an HTML file

tidy path/to/file.html

Enable indentation, wrapping lines in 100, saving to `output.html`

tidy [-i|--indent] y [-w|--wrap] 100 [-o|-output] path/to/output.html path/to/file.html

Modify an HTML file in-place using a configuration file

tidy -config path/to/configuration [-m|-modify] path/to/file.html
made by @shridhargupta | data from tldr-pages