5

I need compare differences in two different versions of same text like in Wikipedia or Stackoverflow, and I would like to know if there is jQuery plugin for this kind of purpose.

newbie
  • 24,286
  • 80
  • 201
  • 301
  • 1
    What kind of comparison do you want to achieve? What is your goal? Are you looking for something like http://plugins.jquery.com/project/jQueryCompare? – elitalon Aug 30 '11 at 07:45
  • User edits text and when user saves changes, new version is saved. Some times user might want to compare what was changed between versions, so I wanted to add this version comparsion util to help users. Only thing that matters is that its easy to use for user. – newbie Aug 30 '11 at 07:47
  • Duplicate of https://stackoverflow.com/questions/3825443/jquery-visual-diff-plugin – scipilot Oct 06 '18 at 07:28

1 Answers1

7

look on

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

the demo in

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

Haim Evgi
  • 123,187
  • 45
  • 217
  • 223
  • 3
    I recommend Google's diff_match_patch too. It's an awesome library that you can tweak in lots of ways. The API is a little bit of a pain - so I wrote a jQuery library to wrap the calls: https://github.com/arnab/jQuery.PrettyTextDiff/ – or9ob Feb 05 '13 at 08:00