https://github.com/live-codes/codemirror
https://github.com/live-codes/codemirror
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/live-codes/codemirror
- Owner: live-codes
- License: mit
- Created: 2025-01-25T12:20:34.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-18T04:56:51.000Z (about 1 year ago)
- Last Synced: 2025-04-18T17:49:07.582Z (about 1 year ago)
- Language: TypeScript
- Size: 909 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @live-codes/codemirror
This is a custom build of CodeMirror6.
This was built for use in [LiveCodes](https://livecodes.io/).
## Usage
The editor is bundled as ESM. It can be used like this:
```html
import { basicSetup, lineNumbers, EditorView, javascript } from 'https://cdn.jsdelivr.net/npm/@live-codes/codemirror';
let view = new EditorView({
doc: "console.log('hello world');",
extensions: [
basicSetup,
lineNumbers(),
javascript(),
],
parent: document.querySelector('#container'),
})
```
## Build
```bash
npm run build
```
## License
MIT