Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fiatjaf/codemirror-mode-jq
a SimpleMode for jq on CodeMirror
https://github.com/fiatjaf/codemirror-mode-jq
codemirror-mode jq
Last synced: 13 days ago
JSON representation
a SimpleMode for jq on CodeMirror
- Host: GitHub
- URL: https://github.com/fiatjaf/codemirror-mode-jq
- Owner: fiatjaf
- Created: 2017-05-23T20:23:55.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-08T18:13:51.000Z (over 5 years ago)
- Last Synced: 2024-10-25T21:10:01.696Z (21 days ago)
- Topics: codemirror-mode, jq
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# codemirror-mode-jq
> CodeMirror mode for [jq](https://stedolan.github.io/jq/) filters and scripts.
## how to use
This is a [Simple Mode](https://codemirror.net/demo/simplemode.html), so you must register it as a simple mode, it is not sufficient to just import it.
```
npm install --save codemirror-mode-jq
``````js
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