An open API service indexing awesome lists of open source software.

https://github.com/witheve/eve-highlighter

Simple automated static highlighting for eve blocks
https://github.com/witheve/eve-highlighter

Last synced: 19 days ago
JSON representation

Simple automated static highlighting for eve blocks

Awesome Lists containing this project

README

          

# Eve Highlighter

## Building

``` sh
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:

``` html

window["eve-highlighter"].highlightAll();

```
`highlightAll()` will find all `` 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)