HTML Tidy 处理部分文件?
我有很多 Django 模板文件,我想使用 tidy 来清理它们。但是,它插入了我不想要的所有这些文档类型和标题垃圾。主要是,我只是想修复缩进。所有其他的东西都是额外的。
tidy 甚至可以处理这样的部分文件吗?我可以使用什么命令?
I've got a punch of Django template files that I want to use tidy to clean up. However, it inserts all this doctype and header junk that I don't want. Mainly, I just want it to fix the indentation. All the other stuff is just extra.
Does tidy even work on partial files like this? What command can I use?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请参阅此。
See this.
请改用 Pretty Diff 工具。它是一种更加完整的算法,并且它在不完整的输入上运行而不做任何假设。
http://prettydiff.com/?m=beautify&html
Use the Pretty Diff tool instead. It is a far more completely algorithm and it operates on incomplete input without making any assumptions.
http://prettydiff.com/?m=beautify&html