Shiki Code

Server-rendered code blocks with syntax highlighting for Lexical rich text

Community 3 3.1k/wk MIT v0.0.3

Installation

pnpm add payload-shiki-code

About

Shiki Code adds a code block to the Lexical rich text editor, so editors can paste snippets into posts and docs. The highlighting runs on the server, so visitors get colored code without loading a highlighter in the browser. Each block can show line numbers, a language label and a copy button, and it can mark added, removed or emphasized lines with simple notation in the code.

The plugin ships with more than 60 languages and dozens of light and dark themes. You pick the languages to include, which keeps the bundle small. Front-end converters are provided so the highlighted output renders in React sites.

Package info

Package name
payload-shiki-code
Latest version
0.0.3
Unpacked size
170 kB
License
MIT
Weekly downloads
3.1k
Last publish
Sep 17, 2025

More from escwxyz

View profile

Server-rendered callout blocks for rich text with GitHub and Obsidian themes

Similar plugins

More in Editor

Editor-authored URL routing that maps collections to path patterns and links

Adds AI text, translation, image and voice generation to Payload fields and the editor

Adds AI text, image and voice generation and translation to Payload editors

Translates Payload documents into other locales with LibreTranslate in the background

Adds Mermaid diagram blocks to rich text with server-rendered SVG output

Code-defined transactional emails with admin-editable copy, test sends and a send log