[1.0.x] highlightjs Input Filter

Created on 16 March 2023, almost 2 years ago
Updated 27 September 2023, about 1 year ago

The highlightjs Input Filter module adds an input filter which allows users to configure the text editor to highlight syntax using the highlight.js library.

The CKEditor CodeSnippet module provides this ability. However, that module is not being updated to Drupal 10, because most of the functionality is included with CKEditor 5. So, this module provides syntax highlighting. Furthermore, this module works without a dedicated code snippet button.

The Prism module is similar, but that uses the PrismJS library instead. The highlight.js library has the ability to automatically detect the code language used within code tags if one is not specified.

There is a D7 highlightjs module that I considered updating. However, that module maintainer plans to rewrite that module to provide the syntax highlighting using a specific field, not an input filter.

Project link

https://www.drupal.org/project/highlightjs_input_filter

📌 Task
Status

Fixed

Component

module

Created by

🇺🇸United States nmangold United States

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024