Skip to content

Commit bae73b1

Browse files
committed
Make highlight default in the demo
1 parent 13a4880 commit bae73b1

File tree

1 file changed

+3
-1
lines changed
  • website/templates/pages/demo

1 file changed

+3
-1
lines changed

website/templates/pages/demo/demo.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,9 @@ $(document).ready(function() {
209209

210210
diff2htmlUi.draw(container, params);
211211
diff2htmlUi.fileListCloseable(container, params['fileListCloseable'] || false);
212-
params['highlight'] && diff2htmlUi.highlightCode(container);
212+
if (params['highlight'] === undefined || params['highlight']) {
213+
diff2htmlUi.highlightCode(container);
214+
}
213215
});
214216
}
215217

0 commit comments

Comments
 (0)