An open API service indexing awesome lists of open source software.

https://github.com/sourcebot-dev/codemirror-lang-tcl

Tcl language support for CodeMirror 6
https://github.com/sourcebot-dev/codemirror-lang-tcl

Last synced: 2 months ago
JSON representation

Tcl language support for CodeMirror 6

Awesome Lists containing this project

README

          

# CodeMirror Tcl Language Support

## Usage

```typescript
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'),
});
```