Highlight.js Syntax Highlighting

Coloration syntaxique pour EmDash CMS avec Highlight.js : 12 thèmes, mode clair/sombre automatique, bouton de copie et composant de bloc de code personnalisé pour Portable Text.

Extension

Highlight.js Syntax Highlighting

Coloration syntaxique pour EmDash CMS avec Highlight.js : 12 thèmes, mode clair/sombre automatique, bouton de copie et composant de bloc de code personnalisé pour Portable Text.

  • Catégorie: Expérience éditeur
  • Statut: Disponible
  • Version: 1.0.2
  • Prix: Inconnu
  • Source: Package npm
  • Installation: Intégration native npm
  • Vérifié: 2026-11-01

Coloration syntaxique pour EmDash CMS avec Highlight.js : 12 thèmes, mode clair/sombre automatique, bouton de copie et composant de bloc de code personnalisé pour Portable Text.

Installation

Installez le paquet depuis npm :

npm install emdash-plugin-highlightjs

Enregistrez le plugin dans votre configuration Astro :

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

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

Détails