1.1.0 • Published 5 months ago
highlightjs-esql v1.1.0
ES|QL syntax grammar for highlight.js
This package contains the ES|QL grammar for Highlight.js.
Usage:
const hljs = require('highlight.js');
const esql = require('highlightjs-eslq');
hljs.registerLanguage('esql', esql);
Contributing
First clone the main Highlight.js repository:
git clone https://github.com/highlightjs/highlight.js.git
Then clone this repo into the extra/
directory:
cd extra
git clone https://github.com/elastic/highlightjs-esql.git
cd ..
Run build script:
npm i
node ./tools/build.js -t node
Run CDN build:
node ./tools/build.js -t cdn
Run tests:
npm run test
Run only ES|QL language tests:
ONLY_EXTRA=true npm run test-markup
Releasing
Publish with release-it
tool:
npx release-it
License
MIT