@cmshiki/editor

0.1.0 • Public • Published

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!");');

Dependencies (6)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @cmshiki/editor

    Weekly Downloads

    3

    Version

    0.1.0

    License

    none

    Unpacked Size

    12.7 kB

    Total Files

    8

    Last publish

    Collaborators

    • chandlerver5