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

0.0.4 • Public • Published

CodeMirror Glimmer

This is a CodeMirror 6 plugin that adds support for Glimmer (gjs and gts).

Usage

import { EditorState } from '@codemirror/state';
import { EditorView } from '@codemirror/view';
import { glimmer } from 'tbd';
import { basicSetup } from 'codemirror';

new EditorView({
  state: EditorState.create({
    doc: `<script>let a = "hello world";</script> <div>{a}</div>`,
    extensions: [basicSetup, glimmer()],
  }),
  parent: document.querySelector('#editor'),
});

Readme

Keywords

none

Package Sidebar

Install

npm i codemirror-lang-glimmer-js

Weekly Downloads

10

Version

0.0.4

License

MIT

Unpacked Size

33.7 kB

Total Files

38

Last publish

Collaborators

  • nullvoxpopuli