Highlight.js Syntax Highlighting

Syntax highlighting for EmDash CMS using Highlight.js — 12 themes, auto dark/light mode, copy button, and a custom code block component for Portable Text.

Plugin

Highlight.js Syntax Highlighting

Syntax highlighting for EmDash CMS using Highlight.js — 12 themes, auto dark/light mode, copy button, and a custom code block component for Portable Text.

  • Category: Editor Experience
  • Status: available
  • Version: 1.0.2
  • Price: Unknown
  • Source: npm package
  • Install method: Native npm integration
  • Verified: 2026-11-01
  • Compatibility: EmDash ^0.12.0
  • Maintainer: Adriano Amalfi

Syntax highlighting for EmDash CMS using Highlight.js — 12 themes, auto dark/light mode, copy button, and a custom code block component for Portable Text.

Installation

Install the package from npm:

npm install emdash-plugin-highlightjs

Register the plugin in your Astro config:

import { highlightjsPlugin } from "emdash-plugin-highlightjs";

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

Details