如何显示修订历史记录 [英] How Show Revision History like Revisions
问题描述
我不关心SO本身,它只是描述我的要求的一种便利方式。我有对文本字段进行更改的审核历史记录。我想以同样的方式显示修改历史记录更改。我记得杰夫讨论过的SO播客,但在成绩单中找不到它,并且不知道播客是什么。 IIRC,它不是基于.net的,也许是Python?
这是为了最终用户的消费,所以看起来像unix-like diff的东西都没有了。诱人显示两个块和文本,新旧,并让他们弄明白,但SO修订历史是sooo更好。
Thx。
既然你没有真正指定一种语言:我已经使用PHP PEAR包完成了这个 Text_Diff 。
Walking the line here, I know, but... How does StackOverflow show the revision changes in the diff-like format they use.
I don't care about SO per-se, it's just a convenient way to describe my requirement. I have an audit history of changes to a text field. I'd like to show the changes the same way SO shows revision history changes. I recall a SO podcast where Jeff discussed it, but can't find it in the transcripts and have no idea what podcast. IIRC, it's not .net based, maybe Python?
This is for end-user consumption so anything that looks like a unix-like diff is out. Tempting to show two blocks and text, old and new and let them figure it out, but the SO revision history is sooo much nicer.
Thx.
Since you didn't really specify a language: I've done this using the PHP PEAR package Text_Diff.
这篇关于如何显示修订历史记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!