1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/tidy.md
Managor a5833ce758
*: make more information links dynamic (#16244)
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2025-04-23 10:24:12 +03:00

630 B

tidy

Clean up and pretty print HTML, XHTML and XML files. Note: tidy cannot preserve original indentation. More information: https://api.html-tidy.org/tidy/tidylib_api_next/group__options__cli.html#gad7a9fcaf7b2a712a82e625e84c042b28.

  • 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}}