wallabag/app/Resources/static/themes/_global/js/highlight.js
2022-01-05 16:04:40 +01:00

8 lines
227 B
JavaScript

import 'highlight.js/styles/atom-one-light.css';
import hljs from 'highlight.js';
window.addEventListener('load', () => {
document.querySelectorAll('pre').forEach((element) => {
hljs.highlightElement(element);
});
});