home-manager/highlightjs/loader.js
2023-12-09 08:36:28 +00:00

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