vue-highlight.js
vue-highlight.js copied to clipboard
dynamically reload highlightjs
Hello, is it possible to reload highlight js somehow dynamically? comparable to:
hljs.initHighlighting.called = false;
hljs.initHighlighting();
or
$(document).ready(function() {
$('#myDiv').each(function(i, e) {hljs.highlightBlock(e)});
});
You can use code property to bind to your dynamic code content.
thank you. But i am using it in a contentEditable="true" container and want to re render the highlightjs once changes are made
Can you give me some example?