1.1.0 • Published 8 months ago
@elastic/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.gitThen clone this repo into the extra/ directory:
cd extra
git clone https://github.com/elastic/highlightjs-esql.git
cd ..
npm iTo test changes visually using "developer tool", build ES|QL grammar only:
node tools/build.js -n esqlOpen tools/developer.html to see your changes in action.
Run only ES|QL language tests:
ONLY_EXTRA=true npm run build-browserRun all tests:
npm run testReleasing
Run build script:
npm i
node ./tools/build.js -t nodeRun CDN build:
node ./tools/build.js -t cdnPublish with release-it tool:
npx release-itLicense
MIT