depot/third_party/nixpkgs/pkgs/misc/documentation-highlighter/loader.js

8 lines
256 B
JavaScript
Raw Normal View History

/* This file is NOT part of highlight.js */
document.onreadystatechange = function () {
var listings = document.querySelectorAll('.programlisting, .screen');
for (i = 0; i < listings.length; ++i) {
hljs.highlightBlock(listings[i]);
}
}