Codeblock

Shiki-Syntaxhervorhebung für EmDash-Codeblöcke, serverseitig gerendert, mit Kopieren-Schaltfläche.

Erweiterung

Codeblock

Shiki-Syntaxhervorhebung für EmDash-Codeblöcke, serverseitig gerendert, mit Kopieren-Schaltfläche.

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

Shiki-Syntaxhervorhebung für EmDash-Codeblöcke, serverseitig gerendert, mit Kopieren-Schaltfläche.

Installation

Installieren Sie das Paket über npm:

npm install @plugdash/codeblock

Registrieren Sie das Plugin in Ihrer Astro-Konfiguration:

// astro.config.mjs
import { defineConfig } from "astro/config";
import emdash from "emdash/astro";
import { codeblockPlugin } from "@plugdash/codeblock";

export default defineConfig({
  integrations: [
    emdash({
      plugins: [codeblockPlugin({ theme: "github-dark", lineNumbers: true })], // native - must be in plugins, not sandboxed
    }),
  ],
});

Details