Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>ChromaMarkNew to Visual Studio Code? Get it now.
ChromaMark

ChromaMark

chromamark

|
3 installs
| (0) | Free
Live preview, syntax highlighting, lint diagnostics, and quick fixes for ChromaMark.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ChromaMark for VS Code

Live preview and syntax highlighting for ChromaMark — Markdown (CommonMark + GFM) plus colored blocks, colored pills, collapsible sections, fields, meters, and inline diff.

Install ChromaMark from the VS Code Marketplace or Open VSX.

Features

  • Live preview. Contributes the ChromaMark renderer to VS Code's built-in Markdown preview, so ::: blocks, [!pills], [=meters], ::: fields, and CriticMarkup render as you write. Open with Markdown: Open Preview (Ctrl+Shift+V / Cmd+Shift+V).
  • Configurable open mode. Choose how ChromaMark (.cm) and Markdown (.md) files open — the rendered preview only, source with preview beside it, or source only — per extension via settings (see Settings). A file is handled once per session, so switching to source manually is never undone. Run ChromaMark: Set Open Mode… from the Command Palette (F1) to change it without leaving the editor.
  • Outline sidebar. The preview shows a left-hand header tree — click to jump, with scroll-spy highlighting and a collapse toggle.
  • Syntax highlighting. An injection grammar highlights ChromaMark constructs inside any Markdown document.
  • Live lint diagnostics. .cm files show ChromaMark authoring mistakes in the Problems panel and editor as you type. Quick fixes can unwrap backticked constructs, correct tone/block typos, reset invalid meters, and close containers. Ordinary .md files are not linted.
  • .cm files. This extension is treated as Markdown, so it gets full editing and preview support.

Settings

Control how files open, per file extension:

Setting Default Applies to
chromamark.cm.openMode preview .cm files
chromamark.md.openMode sourceAndPreview .md files

Each setting accepts:

  • preview — open the rendered preview only (reopens the source editor as the preview in place).
  • sourceAndPreview — open the source editor with the rendered preview beside it.
  • source — open the source editor only (no automatic preview).

Prefer not to edit settings by hand? Run ChromaMark: Set Open Mode… from the Command Palette (F1) to pick a file type and mode; it updates the matching setting for you.

Example

::: success Deploy succeeded
Region `eastus`, 3/3 replicas [!ok healthy].
:::

Build [!pass] · lint [!warn 12] · coverage [=success 87%]

::: details danger Integration failures (3)
See the trace attached to the run.
:::

How it works

The extension imports @chromamark/renderer and applies it to the preview's markdown-it instance via the extendMarkdownIt contribution point. Preview styling is supplied by media/chromamark.css, themed to follow the active editor color theme.

Development

From the repository root:

npm ci
npm run build --workspace @chromamark/renderer   # build the renderer
npm run build --workspace chromamark-vscode       # bundle the extension

Then press F5 in VS Code to launch an Extension Development Host and open any .md / .cm file with the preview.

Build & install the VSIX

npm run package --workspace chromamark-vscode      # → chromamark-vscode-<version>.vsix
code --install-extension packages/vscode/*.vsix --force

The extension is bundled with esbuild (the renderer and markdown-it are inlined), so the VSIX is self-contained. After installing, open a .cm/.md file and run Markdown: Open Preview (Ctrl+Shift+V / Cmd+Shift+V).

License

This software package is licensed under the MIT License. The ChromaMark specification is licensed separately under CC BY-SA 4.0.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft