summaryrefslogtreecommitdiffstats
path: root/documentation-highlighter/loader.js
diff options
context:
space:
mode:
Diffstat (limited to 'documentation-highlighter/loader.js')
-rw-r--r--documentation-highlighter/loader.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/documentation-highlighter/loader.js b/documentation-highlighter/loader.js
new file mode 100644
index 0000000..4ad7dbf
--- /dev/null
+++ b/documentation-highlighter/loader.js
@@ -0,0 +1,7 @@
1/* This file is NOT part of highlight.js */
2document.onreadystatechange = function () {
3 var listings = document.querySelectorAll('.programlisting, .screen');
4 for (i = 0; i < listings.length; ++i) {
5 hljs.highlightBlock(listings[i]);
6 }
7}