From 0ff43220261c258f91f621d8e914648c66b51232 Mon Sep 17 00:00:00 2001 From: Vitor Henrique <87824454+vitorhcl@users.noreply.github.com> Date: Mon, 8 Jan 2024 13:27:38 -0300 Subject: [PATCH] tidy: add page (#12024) * tidy: add page --------- Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Co-authored-by: K.B.Dharun Krishna --- pages/common/tidy.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pages/common/tidy.md diff --git a/pages/common/tidy.md b/pages/common/tidy.md new file mode 100644 index 000000000..85361c654 --- /dev/null +++ b/pages/common/tidy.md @@ -0,0 +1,17 @@ +# tidy + +> Clean up and pretty print HTML, XHTML and XML files. +> NOTE: `tidy` cannot preserve original indentation. +> More information: . + +- 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}}`