diff --git a/composer.json b/composer.json
index c55d925d..b00b4d0e 100644
--- a/composer.json
+++ b/composer.json
@@ -28,6 +28,7 @@
"drupal/gin": "^4.0.6",
"drupal/gin_toolbar": "^2",
"drupal/google_tag": "^2.0.9",
+ "drupal/highlight_js": "^1.2",
"drupal/lagoon_logs": "^3.0.1",
"drupal/metatag": "^2.2",
"drupal/pathauto": "^1.14",
diff --git a/composer.lock b/composer.lock
index 3abe2fad..7a6d0d27 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "ce081e63b3639ce500037147a974b7aa",
+ "content-hash": "568d8e68ffbeedad71d925da755e5339",
"packages": [
{
"name": "asm89/stack-cors",
@@ -3705,6 +3705,58 @@
"source": "https://git.drupalcode.org/project/google_tag"
}
},
+ {
+ "name": "drupal/highlight_js",
+ "version": "1.2.0",
+ "source": {
+ "type": "git",
+ "url": "https://git.drupalcode.org/project/highlight_js.git",
+ "reference": "1.2.0"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://ftp.drupal.org/files/projects/highlight_js-1.2.0.zip",
+ "reference": "1.2.0",
+ "shasum": "ae389f3a03ee09d4dcb83cd3d731e6910bfe1a5c"
+ },
+ "require": {
+ "drupal/core": "^9 || ^10 || ^11"
+ },
+ "type": "drupal-module",
+ "extra": {
+ "drupal": {
+ "version": "1.2.0",
+ "datestamp": "1763546332",
+ "security-coverage": {
+ "status": "covered",
+ "message": "Covered by Drupal's security advisory policy"
+ }
+ }
+ },
+ "notification-url": "https://packages.drupal.org/8/downloads",
+ "license": [
+ "GPL-2.0-or-later"
+ ],
+ "authors": [
+ {
+ "name": "a.dmitriiev",
+ "homepage": "https://www.drupal.org/user/3235287"
+ },
+ {
+ "name": "norman.lol",
+ "homepage": "https://www.drupal.org/user/2482808"
+ },
+ {
+ "name": "sujan shrestha",
+ "homepage": "https://www.drupal.org/user/3475737"
+ }
+ ],
+ "description": "Adds the HighlightJs plugin to CKEditor 5 with syntax highlighting provided by HighlightJs.",
+ "homepage": "https://www.drupal.org/project/highlight_js",
+ "support": {
+ "source": "https://git.drupalcode.org/project/highlight_js"
+ }
+ },
{
"name": "drupal/key",
"version": "1.22.0",
diff --git a/config/default/core.extension.yml b/config/default/core.extension.yml
index 8e58d412..ed0b2b45 100644
--- a/config/default/core.extension.yml
+++ b/config/default/core.extension.yml
@@ -47,6 +47,7 @@ module:
gin_toolbar: 0
google_tag: 0
help: 0
+ highlight_js: 0
history: 0
image: 0
image_captcha: 0
diff --git a/config/default/editor.editor.civictheme_rich_text.yml b/config/default/editor.editor.civictheme_rich_text.yml
index c919942b..434361a5 100644
--- a/config/default/editor.editor.civictheme_rich_text.yml
+++ b/config/default/editor.editor.civictheme_rich_text.yml
@@ -6,6 +6,7 @@ dependencies:
- filter.format.civictheme_rich_text
module:
- ckeditor5
+ - highlight_js
_core:
default_config_hash: SztHd9Hrw3-1EuKex-O6V-Kc5EpxLGsSam2HEDXSgDM
format: civictheme_rich_text
@@ -40,6 +41,8 @@ settings:
- subscript
- '|'
- sourceEditing
+ - '|'
+ - highlightJs
plugins:
ckeditor5_alignment:
enabled_alignments:
diff --git a/config/default/filter.format.civictheme_rich_text.yml b/config/default/filter.format.civictheme_rich_text.yml
index 1c920ed0..625d36e5 100644
--- a/config/default/filter.format.civictheme_rich_text.yml
+++ b/config/default/filter.format.civictheme_rich_text.yml
@@ -6,6 +6,7 @@ dependencies:
- core.entity_view_mode.media.embedded
module:
- editor
+ - highlight_js
- linkit
- media
_core:
@@ -44,7 +45,7 @@ filters:
status: true
weight: -50
settings:
- allowed_html: '