# Codeblock

> Shiki syntax highlighting for EmDash code blocks - rendered server-side, with a copy button.

Source: https://emdashcmseverything.com/plugins/codeblock/

- Category: Editor Experience
- Status: available
- Version: 0.4.0
- Price: Unknown
- Compatibility: EmDash >=0.13.0
- License: MIT
- Maintainer: abhinav061
- Download: https://www.npmjs.com/package/@plugdash/codeblock
- Repository: https://github.com/plugdash/plugdash
- Published: 2026-11-01

Shiki syntax highlighting for EmDash code blocks - rendered server-side, with a copy button.

## Installation

Install the package from npm:

```bash
npm install @plugdash/codeblock
```

Register the plugin in your Astro config:

```js
// 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

- **Latest version:** 0.4.0
- **License:** MIT
- **Publisher:** abhinav061
- **Requires:** EmDash `>=0.13.0`
- **Source repository:** [https://github.com/plugdash/plugdash](https://github.com/plugdash/plugdash)
- **npm package:** [@plugdash/codeblock](https://www.npmjs.com/package/@plugdash/codeblock)
