MicroLighter
This module integrates the MicroLighter syntax highlighter into Drupal, offering a lightweight and performant alternative to other highlighting libraries. It provides a CKEditor plugin, text filter, and field formatter, allowing you to easily add syntax highlighting to your content with various configuration options and themes.
Built with an AI assistant.
Provides integration with the MicroLighter syntax highlighter library.
MicroLighter uses a new approach to syntax highlighting using css ::highlight() instead of spans.
It is SIGNIFICANTLY lighter weight and more performant than PrismJS.
Read the intro blog post: https://daverupert.com/2026/08/microlighter/
Features
Includes a CKEditor plugin, text filter, and field formatter.
Configure default theme, line numbers, copy button.
Choose from 12 themes.
Post-Installation
Configure the text filter in your editor, or use the field formatter on text fields.
Enable microlighter_ckeditor if needed.
Additional Requirements
MicroLighter library: composer require npm-asset/microlighter
Recommended modules/libraries
None.
Similar projects
Compare with Prism, PrismJS, CodeSnippet, CKEditor Codesnippet, Highlight PHP, GeSHi Filter, highlight.js Input Filter, Highlight JS
Supporting this Module
Try it out and report any issues.
Community Documentation
None.
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Release Timeline
Releases
| Version | Type | Core | Notes | Release date | |
|---|---|---|---|---|---|
| 0.0.1-alpha2 | Pre-release | 11 | Remove npm-asset/microlighter from composer.json. | Sep 21, 2026 | |
| 0.0.1-alpha1 | Pre-release | 11 | Sep 20, 2026 | ||
| 1.x-dev | Dev | 11 | Sep 20, 2026 |