Highlight.js Syntax Highlighting

Syntaxhervorhebung für EmDash CMS mit Highlight.js: 12 Themes, automatischer Hell-/Dunkelmodus, Kopieren-Schaltfläche und eine eigene Codeblock-Komponente für Portable Text.

Erweiterung

Highlight.js Syntax Highlighting

Syntaxhervorhebung für EmDash CMS mit Highlight.js: 12 Themes, automatischer Hell-/Dunkelmodus, Kopieren-Schaltfläche und eine eigene Codeblock-Komponente für Portable Text.

  • Kategorie: Editor-Erfahrung
  • Status: Verfügbar
  • Version: 1.0.2
  • Preis: Unbekannt
  • Quelle: npm-Paket
  • Installation: Native npm-Integration
  • Geprüft: 2026-11-01

Syntaxhervorhebung für EmDash CMS mit Highlight.js: 12 Themes, automatischer Hell-/Dunkelmodus, Kopieren-Schaltfläche und eine eigene Codeblock-Komponente für Portable Text.

Installation

Installieren Sie das Paket über npm:

npm install emdash-plugin-highlightjs

Registrieren Sie das Plugin in Ihrer Astro-Konfiguration:

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

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

Details