# Code Block Pro

> Shiki syntax highlighting for EmDash code blocks: 20+ themes, line numbers, line highlights, filename badge and copy button, rendered on the server without WebAssembly.

Source: https://emdashcmseverything.com/plugins/code-block-pro/

- Category: Editor Experience
- Status: available
- Version: 0.2.0
- Price: Unknown
- Compatibility: EmDash ^1.4.0
- License: MIT
- Maintainer: jimiryquai
- Download: https://www.npmjs.com/package/emdash-plugin-code-block-pro
- Repository: https://github.com/jimiryquai/emdash-plugin-code-block-pro
- Published: 2026-11-08

Shiki syntax highlighting for EmDash code blocks: 20+ themes, line numbers, line highlights, filename badge and copy button, rendered on the server without WebAssembly.

## Installation

Install the package and its peer dependencies from npm:

```bash
npm install emdash-plugin-code-block-pro shiki @shikijs/engine-javascript
```

Register the plugin in your Astro config:

```js
import emdash from "emdash/astro";
import { codeBlockProPlugin } from "emdash-plugin-code-block-pro";

export default defineConfig({
  integrations: [
    emdash({
      plugins: [codeBlockProPlugin({ defaultTheme: "github-dark" })],
    }),
  ],
});
```

## Details

- **Latest version:** 0.2.0
- **License:** MIT
- **Publisher:** jimiryquai
- **Requires:** EmDash `^1.4.0`
- **Source repository:** [https://github.com/jimiryquai/emdash-plugin-code-block-pro](https://github.com/jimiryquai/emdash-plugin-code-block-pro)
- **npm package:** [emdash-plugin-code-block-pro](https://www.npmjs.com/package/emdash-plugin-code-block-pro)
