From da5bbb186061168190d6790a26e372fe73ea1c13 Mon Sep 17 00:00:00 2001 From: Rodrigo Fernandes Date: Sat, 19 Dec 2015 22:57:41 +0000 Subject: [PATCH] Enable line matching on side-by-side sample --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 5b70f31..c2a3498 100644 --- a/index.html +++ b/index.html @@ -246,7 +246,7 @@ // generate and inject the diff HTML into the desired place 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', showFiles: true, matching: 'lines', outputFormat: 'side-by-side' }); // collect all the code lines and execute the highlight on them var codeLines = document.getElementsByClassName("d2h-code-line-ctn");