如何查看两个html文档之间的差异?
我正在开发一个帮助系统,其中有数百个用 HTML 编写的页面。 我想将这些 HTML 页面提供给多个人,以便他们可以进行更改。 在上传他们修改的文档之前,我需要某种方式(例如颜色编码)来检查并修复他们的更改。例如,我想查看以红色或其他视觉提示标记的所有更改。最好的方法是什么?
I'm working on a help system with hundreds of pages written in HTML.
I want to give those HTML pages to multiple people so they can make changes.
Before I upload their modified documents, I need some way (such as color coding) to check and fix their changes. For example, I want to see all the changes marked in red or some other visual cue. What is the best way to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
使用 Eclipse 作为 Diff 工具
Use Eclipse as Diff Tool
使用差异工具。我真的很喜欢 SourceGear 的 DiffMerge,而且它是免费的!
Use a diff tool. I really like SourceGear's DiffMerge, and it is free!
Diff 将像其他人所说的那样工作。
然而,作为一名管理员,我会担心必须处理由多人编辑的数百页 HTML。对于 CMS 或文档管理系统来说,要解决这个问题真是太令人兴奋了。保存每个版本非常容易(就像 Stackoverflow 在编辑时所做的那样),以便您可以在最好的版本之间进行选择。另一个巨大的优势是消除常见元素的重复性,例如标头、文档类型声明等。我什至不想开始思考尝试统一所有这些并使其 100% 兼容会有多有趣....
如果您不愿意自己进行设置,则有专门用于此目的的帮助系统。我的公司使用 Kayako,但有几十种可供选择,其中许多是免费的。
Diff will work as others have said.
However, I'd be leery as an admin to be having to deal with hundreds of pages of HTML edited by multiple people. This is SCREAMING for a CMS or Document Management System of sorts to deal with exactly this problem. It would be more than easy enough to save each version (as Stackoverflow does on edits) so that you could pick and choose between the best ones. Another huge advantage would be eliminating the repetitive nature of common elements, such as headers, doctype declarations, etc. I wouldn't even want to begin to think how much fun it would be to try to unify all that and get it 100% compliant....
There are Help systems out there for just this purpose if you're not up to setting this up yourself. My company uses Kayako, but there are dozens to choose from, many free.