codemirror-lang-cue
TypeScript icon, indicating that this package has built-in type declarations

0.1.0-alpha • Public • Published

codemirror-lang-cue

NPM Version

This package implements CUE language support for the CodeMirror code editor.

Getting Started

Installation

npm i codemirror-lang-cue

Usage

import {EditorView} from '@codemirror/view';
import {EditorState} from '@codemirror/state';
import {cue} from "codemirror-lang-cue";

const state = EditorState.create({
	doc: 'my cue code',
	extensions: [
		cue(),
	]
});

const view = new EditorView({
	parent: document.querySelector('#editor'),
	state
});

Example

TODO:

Readme

Keywords

none

Package Sidebar

Install

npm i codemirror-lang-cue

Weekly Downloads

3

Version

0.1.0-alpha

License

MIT

Unpacked Size

35.3 kB

Total Files

8

Last publish

Collaborators

  • haoqixu