jsdifflib
jsdifflib copied to clipboard
A javascript library for diffing text and generating corresponding HTML views
In the course of my use, I found that the line number is selected when the text is elected, which does not seem to be very friendly to use, and...
**difflib** works line by line. But, First I wanted to group set of lines and check diff in that group. I have tried this way, But this was not helpful....
There seem to be 4 results: unchanged, added, removed, and updated. For updated, it would be really cool if the library could highlight what exactly is different in an updated...
 like in this in base text line 4 and 5 should in red and and in new text line 9 and 10 should be in green
Some sugestion to do the SequenceMatcher ignore comments?
This is a simple binding handlers for knockout js. ``` ko.bindingHandlers['jsDiffLib'] = { update: function (element, valueAccessor) { function getHtml(table){ var elems = []; $(table).find("tbody>tr>td").each(function (item, elem) { if(elem.className ===...
Please make an option to ignore whitespaces and tabs
This commit adds a new parameter to `buildView` function (invertSides) so that **base** & **new** may be shown left or right
If you have something like @@ -130,18 +130,22 @@ class PostModel: It would be great in view you can get real line numbers. Otherwise this is working great.
error occured if text has contain 'hasOwnProperty' minimum code is ``` new difflib.SequenceMatcher([],["hasOwnProperty"]).get_opcodes() ```