Syntax Highlighter

Portable Text syntax highlighting for EmDash CMS with SSR rendering, line numbers, highlighted lines, and copy-to-clipboard.

Plugin

Syntax Highlighter

Portable Text syntax highlighting for EmDash CMS with SSR rendering, line numbers, highlighted lines, and copy-to-clipboard.

  • Category: Editor Experience
  • Status: available
  • Version: 0.1.1
  • Price: Unknown
  • Source: npm package
  • Install method: Native npm integration
  • Verified: 2026-11-01
  • Compatibility: EmDash >=0.1.0
  • Maintainer: Mason James

Portable Text syntax highlighting for EmDash CMS with SSR rendering, line numbers, highlighted lines, and copy-to-clipboard.

Installation

Install the package from npm:

npm install @masonjames/emdash-syntax-highlighter

Register the plugin in your Astro config:

// astro.config.mjs
import { defineConfig } from "astro/config";
import emdash from "emdash/astro";
import { syntaxHighlighterPlugin } from "@masonjames/emdash-syntax-highlighter";

export default defineConfig({
  integrations: [
    emdash({
      plugins: [syntaxHighlighterPlugin()],
    }),
  ],
});

Details