Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 462 Bytes

File metadata and controls

27 lines (18 loc) · 462 Bytes

CodeMirror Tcl Language Support

Usage

import { EditorState } from '@codemirror/state';
import { EditorView } from '@codemirror/view';
import { tcl } from 'codemirror-lang-tcl';
import { basicSetup } from 'codemirror';

new EditorView({
  state: EditorState.create({
    doc: `proc greet {name} {
    puts "Hello, $name!"
}
greet "World"`,
    extensions: [basicSetup, tcl()],
  }),
  parent: document.querySelector('#editor'),
});