This project is not covered by Drupal’s security advisory policy.
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
Option 1
Asset Packagist
composer require npm-asset/microlighter
Option 2
Composer repository.
"repositories": [
{
"type": "package",
"package": {
"name": "davatron5000/microlighter",
"version": "v2.2.0",
"type": "drupal-library",
"dist": {
"type": "tar",
"url": "https://github.com/davatron5000/microlighter/archive/refs/tags/v2.2.0.tar.gz"
}
}
}
]composer require davatron5000/microlighter
* You will need to build the library after installing with composer.
npm i -D
sh build.shRecommended 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.
Project information
- Project categories: Content display
- Created by mortona2k on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
Releases
Remove npm-asset/microlighter from composer.json.

