Skip to content
Eskais UI

Editor

Markdown Editor Languages

Every code language CodeMirror knows, for MarkdownEditor's fenced code blocks; each language loads the first time a block names it. Opt-in, since the list adds about 230 KB of shared chunks to most bundles.

Example

Installation

npx shadcn@latest add @eskais/markdown-editor-languages
Brings alongmarkdown-editor
npm packages@codemirror/language-data@6.5.2

Usage

Import
import { markdownCodeLanguages } from "@/components/ui/markdown-editor-languages"

Opt in when people write fenced code: the languages load lazily, per fence.

API reference

This item exports functions and types rather than components.

Other exports

markdownCodeLanguages

Agent actions

Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.