1.0.0 • Published 7 years ago

codemirror-mode-jq v1.0.0

Weekly downloads
4
License
ISC
Repository
github
Last release
7 years ago

codemirror-mode-jq

CodeMirror mode for jq filters and scripts.

how to use

This is a Simple Mode, so you must register it as a simple mode, it is not sufficient to just import it.

npm install --save codemirror-mode-jq
CodeMirror.defineSimpleMode('jq', require('codemirror-mode-jq'))

// then, later
let cm = CodeMirror.fromTextArea(textarea, {
  mode: 'jq'
})

Or do it the way you want. You get the idea.

license

ISC

1.0.0

7 years ago