Avoid using diff container
$("input[type=button1]").click(function () {
$("#wrapper tr").prettyTextDiff({
cleanup: $("#cleanup").is(":checked"),
diffContainer: false, //setting false or null
debug:true,
});
});
Example: https://jsfiddle.net/rym8c2f0/
Hi @parallels999 - thanks for the change. Couple of requests:
-
What is the need, pros and cons of setting
diffContainer: false? I no longer use this library, so I am curious. -
Please follow the steps listed in https://github.com/arnab/jQuery.PrettyTextDiff?tab=readme-ov-file#development. Specifically, use the
cake buildcommand to produce the change in JS minified version of the code. And then increment the version inpackage.json(I think1.1.0would be apt, unless this is a backward incompatible change).
What is the need, pros and cons of setting diffContainer: false?
The idea is not to have a third container with the changes, but to show old/new in the same existing containers
Specifically, use the cake build
i have no idea how to do it, I thought there would be a github action that took care of that in the releases
Specifically, use the cake build
i have no idea how to do it, I thought there would be a github action that took care of that in the releases
I totally understand. This library was written 12 years ago, when:
- there were no Github actions :)
- Coffeescript was cool and hip
In any case, the instructions to install cake are right in the same notes: https://github.com/arnab/jQuery.PrettyTextDiff?tab=readme-ov-file#development (it's just a npm package).