Shiki Code
Integrates Shiki syntax highlighting for code blocks in Payload CMS.
Installation
pnpm add payload-shiki-code About
The Shiki Code plugin enhances Payload CMS by providing server-rendered syntax highlighting for code blocks using Shiki. This integration is particularly useful for rich text fields, offering support for over 60 programming languages and themes. It allows for extensive customization, including options for lazy loading, line highlighting, and display preferences such as line numbers and language labels. Installation requires adding the plugin to your Payload configuration, after which it can be easily integrated into collections or global fields. The plugin also includes lifecycle hooks for further extensibility and performance optimization through a cached highlighter instance. Developers can take advantage of TypeScript support throughout the configuration and usage, ensuring type safety and smooth development workflows. The plugin offers built-in support for defining which languages to include, reducing bundle size and improving render speed.
Package info
- Package name
payload-shiki-code- Latest version
0.0.3- Unpacked size
- 170 kB
- License
- MIT
- Weekly downloads
- 115
- Last publish
- Sep 17, 2025
More from escwxyz
View profileIframe Tabs
Add iframes into separate tabs in the Payload admin panel.
Visual Editor
Adds a visual live editor to Payload CMS for instant content preview.
Label Popover
Adds descriptive popovers to field labels in Payload.
Shadcn UI components
Integrates Shadcn UI components with PayloadCMS for admin panels.
Media Gallery
Replaces the Payload media collection list view with justified, masonry, and grid layouts plus a lightbox.
Auditor
A plugin for Payload CMS that tracks events and enhances security.
Similar plugins
More in ContentStripe
Syncs Payload collections with Stripe resources and routes Stripe webhooks and API calls through Payload.
Paystack
Integrate Paystack with Payload CMS for resource management and two-way sync.
Square Sync
Syncs Square catalog, inventory, and modifier data into read-only Payload collections with webhook-driven updates.
ShipStation integration
Integrates ShipStation shipping features into Payload CMS for ecommerce.
Invoice PDF
Manage invoices and quotes with PDF generation and email delivery.
Google Merchant Center Ecommerce Integration
Sync products with Google Merchant Center from Payload CMS.