是否有jQuery插件来比较两个不同文本字符串的差异?

new*_*bie 5 jquery text-comparison jquery-plugins

我需要比较维基百科或Stackoverflow中相同文本的两个不同版本的差异,我想知道是否有用于此类目的的jQuery插件.

Hai*_*vgi 7

旁观

http://code.google.com/p/google-diff-match-patch/

演示中

http://neil.fraser.name/software/diff_match_patch/svn/trunk/demos/demo_diff.html

  • 我也推荐Google的diff_match_patch.这是一个很棒的库,你可以通过很多方式进行调整.API有点痛苦 - 所以我写了一个jQuery库来包装调用:https://github.com/arnab/jQuery.PrettyTextDiff/ (3认同)