tidy
Clean up and pretty print HTML, XHTML, and XML files. Note:
tidycannot 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
- Enable indentation, wrapping lines in 100, saving to
output.html:
tidy y 100
- Modify an HTML file in-place using a configuration file:
tidy -config
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
