nixpkgs/pkgs/misc/documentation-highlighter/loader.js
pennae 3bf6d6d251 documentation-highlighter: 9.12.0 -> 11.9.0, add new langs
this has been overdue for a while. we also add the `shell` language to
the bundle (in addition to nix and bash) for ShellSession highlighting.

perhaps we should use the full, regular distribution instead of a custom
build, but eh.
2023-12-02 00:07:26 +01:00

7 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);
});
});