jsondiffpatch
jsondiffpatch copied to clipboard
How can I see the entire line (similar to git diff)?
I am wondering how can I see the entire line the same way as git diff shows it? Right now I only see the changed characters inside the line...
on text unidiffs? (on objects you can see the "show unchanged values" checkbox. if you mean the unidiffs, they are created by Neil Fraser's diffmatchpatch lib, not sure it has that option, but if it had it, it would be possible to do it.
This is an object.
Here's my code:
var delta = jsondiffpatch.diff(value.oldvalue, value.newvalue); value.diff = jsondiffpatch.formatters.html.format(delta, value.oldvalue);
What I see:
I want to see the entire line, and not just the small diff in it...
I see, yes, the text unidiff, those are created by https://code.google.com/archive/p/google-diff-match-patch/ but I'm not sure it has an option to do that.
We're also having similar requirements. Any progress/work-arounds to achieve this?
are there any advances ?