Use line matching as default
This commit is contained in:
parent
20e078334b
commit
1dce15ad7a
1 changed files with 1 additions and 1 deletions
|
|
@ -245,7 +245,7 @@
|
||||||
hljs.configure({languages: distinctLanguages});
|
hljs.configure({languages: distinctLanguages});
|
||||||
|
|
||||||
// generate and inject the diff HTML into the desired place
|
// generate and inject the diff HTML into the desired place
|
||||||
document.getElementById("line-by-line").innerHTML = Diff2Html.getPrettyHtml(diffJson, { inputFormat: 'json', showFiles: true });
|
document.getElementById("line-by-line").innerHTML = Diff2Html.getPrettyHtml(diffJson, { inputFormat: 'json', showFiles: true, matching: 'lines' });
|
||||||
document.getElementById("side-by-side").innerHTML = Diff2Html.getPrettyHtml(diffJson, { inputFormat: 'json', outputFormat: 'side-by-side' });
|
document.getElementById("side-by-side").innerHTML = Diff2Html.getPrettyHtml(diffJson, { inputFormat: 'json', outputFormat: 'side-by-side' });
|
||||||
|
|
||||||
// collect all the code lines and execute the highlight on them
|
// collect all the code lines and execute the highlight on them
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue