Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

MicroLighter

No security coverage Under active development

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

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.sh

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.

Ask your assistant about MicroLighter

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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

Tracked releases
3
Tracked since
Sep 2026
Latest release
1 month ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
0.0.1-alpha2 Pre-release 11 PHP >=8.3 Sep 21, 2026
0.0.1-alpha1 Pre-release 11 PHP >=8.3 Sep 20, 2026
1.x-dev Dev 11 PHP >=8.3 Sep 20, 2026