2019-09-21 09:44:50 +02:00

10 lines
264 B
JavaScript

function loadDiff(diff) {
var diffHtml = Diff2Html.getPrettyHtml(diff, {
inputFormat: 'diff',
showFiles: true,
matching: 'none',
outputFormat: 'line-by-line'
});
console.log(diffHtml);
document.getElementById("diff").innerHTML = diffHtml;
}