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
- Host: GitHub
- URL: https://github.com/witheve/eve-highlighter
- Owner: witheve
- Created: 2017-07-06T02:54:46.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-12T19:21:05.000Z (almost 9 years ago)
- Last Synced: 2025-01-14T18:44:52.293Z (over 1 year ago)
- Language: TypeScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)