Search by

webwizardsusa / rich-editor-plus-code

webwizardsusa

Code blocks for Rich Editor Plus: pick the language, line numbers and highlighted lines, coloured with Shiki while editing and Phiki when rendered.

Package info

github.com/webwizardsusa/rich-editor-plus-code

pkg:composer/webwizardsusa/rich-editor-plus-code

Statistics

Installs: 3

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.2 2026-11-17 19:56 UTC

This package is auto-updated.

Last update: 2026-11-19 20:36:04 UTC


README

Under active development. This package is still changing and may not be ready for production use yet. Until 1.0, a minor release can include breaking changes, so check the changelog before you upgrade.

Latest version on Packagist Tests Total downloads PHP version Rich Editor Plus version License

Code blocks for Rich Editor Plus, with a language picker, line numbers and highlighted lines. The editor colours code with Shiki as you type, and rendered content is highlighted on the server with Phiki, so the colours match and the page that shows the content needs no JavaScript to highlight it. The plugin takes the place of the core code block, and content stored before keeps working.

Requires PHP 8.3+ and Rich Editor Plus 0.2+ (Filament 5).

composer require webwizardsusa/rich-editor-plus-code
php artisan filament:assets
use Webwizardsusa\RichEditorPlusCode\CodeBlockPlugin;

RichEditorPlus::make('content')->addPlugins([
    CodeBlockPlugin::make()->defaultLanguage('php'),
]);

Render with the same plugin, and add the styles once to the layout that shows the content:

<x-rich-editor-plus-code::assets />

Documentation

The full documentation is in the docs folder.

About Us

This package is developed and maintained by WebWizardsUSA, a top rated web development agency on Upwork.

License

The MIT License (MIT). See LICENSE.md.