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

6 lines
236 B
JavaScript

/* This file is NOT part of highlight.js */
document.addEventListener('DOMContentLoaded', (event) => {
document.querySelectorAll('.programlisting, .screen').forEach((element) => {
hljs.highlightElement(element);
});
});