JQuery Visual Diff Plugin

后端 未结 3 1428
余生分开走
余生分开走 2020-12-30 17:07

is there a JQuery visual diff plugin that anybody knows about. Something like you would see on GitHub, BitBucket, or any standard source control site?

I have found t

相关标签:
3条回答
  • 2020-12-30 17:24

    https://code.google.com/p/google-diff-match-patch/ is Google's library for diff. They have implementation for Java, JavaScript, Dart, C++, C#, Objective C, Lua and Python.

    I have used it, its pretty neat and powerful.

    0 讨论(0)
  • 2020-12-30 17:31

    I think you should consider doing a home made plugin, to do the Visual thing.

    There is a jquery plugin which allow you to do $diff comparison like this one :

    By using this you get a usable collection of elements:

    $.diff(obj1, obj2) return  {mod: ..., add: ..., del: ...}
    

    You could use jsfiddle to prototype your own plugin (http://jsfiddle.net/)

    0 讨论(0)
  • 2020-12-30 17:43

    This is long since done, but for posterity:

    https://github.com/arnab/jQuery.PrettyTextDiff

    0 讨论(0)
提交回复
热议问题