Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JQuery Visual Diff Plugin

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 this https://github.com/cemerick/jsdifflib and it looks pretty good, but wonder if there are more out there like it.

Thank You.

like image 259
Khalid Abuhakmeh Avatar asked Dec 03 '22 11:12

Khalid Abuhakmeh


2 Answers

This is long since done, but for posterity:

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

like image 51
digitalextremist Avatar answered Dec 19 '22 04:12

digitalextremist


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/)

like image 29
rasata Avatar answered Dec 19 '22 04:12

rasata