@kalem-editor/plugin-code-highlight
v1.0.0
Published
Kalem plugin: code block highlighting with lazily loaded language packs
Maintainers
Readme
@kalem-editor/plugin-code-highlight
Kalem plugin: code block highlighting with lazily loaded language packs.
Part of Kalem — a WYSIWYG editor for people who don't know Markdown, that saves Markdown.
npm i @kalem-editor/plugin-code-highlightimport { codeHighlightPlugin } from '@kalem-editor/plugin-code-highlight';
import '@kalem-editor/themes/plugin-code.css';
editor.addPlugin(
codeHighlightPlugin(),
);Highlights code blocks. Eight language packs, each loaded on demand — a document without code downloads zero bytes. Prism and Shiki adapters included.
Documentation, guides and the full API: see the Kalem repository.
License
MIT
