wallabag/assets/_global/js/highlight.js

9 lines
227 B
JavaScript
Raw Normal View History

import 'highlight.js/styles/atom-one-light.css';
2022-01-05 14:23:08 +01:00
import hljs from 'highlight.js';
window.addEventListener('load', () => {
2022-01-05 14:23:08 +01:00
document.querySelectorAll('pre').forEach((element) => {
hljs.highlightElement(element);
});
});