@cmshiki/editor
v0.1.0
Published
CodeMirror editor with Shiki syntax highlighting
Downloads
14
Maintainers
Readme
ShikiEditor
[WIP]!
ShikiEditor is a code editor. It's based on codemirror and shiki. If you're looking for a lightweight code editor with syntax highlighting similar to vscode, then this one's for you. It relies on @cmshiki/shiki.
Usage
import { ShikiEditor } from '@cmshiki/editor';
const editor = new ShikiEditor({
doc: 'console.log("Hello, world!");'
});
editor.setValue('console.log("Hello, world!");');