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
- Host: GitHub
- URL: https://github.com/sourcebot-dev/codemirror-lang-tcl
- Owner: sourcebot-dev
- License: mit
- Created: 2025-06-20T21:40:16.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-06-21T18:01:08.000Z (11 months ago)
- Last Synced: 2026-02-12T07:05:57.361Z (4 months ago)
- Language: Tcl
- Size: 143 KB
- Stars: 1
- Watchers: 0
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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'),
});
```