forked from friendica/friendica-addons
27a48ae84a
- Create separate addon javascript file - Register stylesheet and Javascript files
6 lines
226 B
JavaScript
6 lines
226 B
JavaScript
hljs.initHighlightingOnLoad();
|
|
|
|
document.addEventListener('postprocess_liveupdate', function () {
|
|
var blocks = document.querySelectorAll('pre code:not(.hljs)');
|
|
Array.prototype.forEach.call(blocks, hljs.highlightBlock);
|
|
});
|