Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 592 Bytes

README.md

File metadata and controls

22 lines (18 loc) · 592 Bytes

Eve Highlighter

Building

npm install
npm run build

using

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:

  1. no class and no parent indicating it has already been highlighted by another highlighter (eve block highlight)
  2. the class "language-eve" (eve block highlight)
  3. the class "language-eve-document" (eve markdown document highlight)