npm install
npm run build
Include the codemirror-mode-eve/eve-mode.css and the build/highlighter-bundle.js script. Then include the following at the bottom of the page:
<script>
window["eve-highlighter"].highlightAll();
</script>
highlightAll()
will find all <code>
elements with:
- no class and no parent indicating it has already been highlighted by another highlighter (eve block highlight)
- the class "language-eve" (eve block highlight)
- the class "language-eve-document" (eve markdown document highlight)