wallabag/app/Resources/static/themes/_global/js/highlight.js

9 lines
227 B
JavaScript
Raw Normal View History

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