# Shiki Highlighting Syntax highlighting for the code editor, tokenized with shiki using the same themes as the documentation code panels. ## Installation ```bash npx shadcn@latest add litingyes/blocove/code-editor-shiki ``` This example also uses: `code-editor`. ```bash npx shadcn@latest add litingyes/blocove/code-editor ``` Highlighting follows the class based theme of the page: github-light by default, github-dark when the dark class is present on the document, like the rest of shadcn/ui. The document is tokenized in the background, once the view is idle. ## API Reference ### CodeEditorShiki Declares the shiki highlighting extension. The item ships its own highlighter, so the editor colors match the documentation code panels. | Prop | Type | Default | | --- | --- | --- | | `language` | `string` | `root language` | | `colorScheme` | `'auto' | 'light' | 'dark'` | `'auto'` | | `delay` | `number` | `120` | | `maxLength` | `number` | `150000` | ## Registry dependencies - `litingyes/blocove/code-editor-extension` Namespace: `npx shadcn@latest add @blocove/code-editor-shiki`