Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想要 HTMLTidy 做的只是缩进我的 HTML 文档的标签,但它目前也更改了doctype,向标签添加xmlns属性html,更改<br />标签,并且可能做一些其他的事情。
doctype
xmlns
html
<br />
如何使 Notepad++ 中的 HTMLTidy 仅在我选择TextFX → TextFX HTML Tidy → TiDy Clean Document-nowrap时执行缩进?
有一个文件HTMLTIDY.CFG用于<NPPInstallDir>plugins\Config\tidy配置 Tidy 操作。根据您所说,我认为您所要做的就是删除(或用';'注释掉)除缩进选项之外的所有内容,即
HTMLTIDY.CFG
<NPPInstallDir>plugins\Config\tidy
indent: yes indent-spaces: 2
是的,使用 Notepad++ 的 XML 插件。它有一个“漂亮的打印”功能,可能适用于 HTML。