mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-12 15:59:05 +00:00
Update cheatsheets
This commit is contained in:
22
tidy
Normal file
22
tidy
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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_5.2.0/tidy_cmd.html>.
|
||||
|
||||
- Pretty print an HTML file:
|
||||
|
||||
`tidy {{path/to/file.html}}`
|
||||
|
||||
- Enable [i]ndentation, [w]rapping lines in 100, saving to `output.html`:
|
||||
|
||||
`tidy --indent y --wrap 100 -output {{path/to/output.html}} {{path/to/file.html}}`
|
||||
|
||||
- Modify an HTML file in-place using a configuration file:
|
||||
|
||||
`tidy -config {{path/to/configuration}} -modify {{path/to/file.html}}`
|
||||
Reference in New Issue
Block a user