From 1dce15ad7ae0085bb616b96e5856fa392beb049f Mon Sep 17 00:00:00 2001 From: Rodrigo Fernandes Date: Sat, 19 Dec 2015 21:14:58 +0000 Subject: [PATCH] Use line matching as default --- sample/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sample/index.html b/sample/index.html index 7f58f8b..f30d03e 100644 --- a/sample/index.html +++ b/sample/index.html @@ -245,7 +245,7 @@ hljs.configure({languages: distinctLanguages}); // 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' }); // collect all the code lines and execute the highlight on them