Typix LogoTypix
Extensions

Code Highlight (Prism)

Syntax highlighting for code blocks via Prism.js

Adds Prism.js-powered syntax highlighting to your code blocks. Requires the Code Block extension as the host container.

Install

pnpm add @typix-editor/extension-code-highlight-prism

Live demo

Why Prism vs Shiki

  • Prism — small bundle, fast, runs at runtime. Good for general syntax highlighting where bundle size matters.
  • Shiki — VS Code's TextMate-grammar engine. Identical output to your editor's theme but larger bundle.

Pick one. Don't install both.

On this page