jajuma-gmbh / syntax-highlighter-4-page-builder
jajuma-gmbh/syntax-highlighter-4-page-builder
JaJuMa Syntax Highlighter 4 Page Builder for Magento 2
:nerd_face: Syntax Highlighter 4 Page Builder for Magento 2 by JaJuMa
Syntax Highlighter 4 Page Builder by JaJuMa adds
syntax highlighting as well as line numbers and color icons for HTML, CSS + Javascript code in Magento 2 Page Builder.
Compatible with
Features
This extension provides following improvements for Magento 2 Page Builder HTML Editor:
- Syntax highlighting for HTML, CSS & JS as well as Magento directives (41 themes included)
- Color icons for CSS colors (hex, rgba, hsl, web colors)
- Automatically added line numbers
- Highlight matching braces on hover / via rainbow colors
- Keep line indents on input line break
- Show invisible characters (space, tabs, line breaks)
- Preview CSS values on hover for angles, colors, gradients, easing functions & time for durations
Note
Looking for more improvements for Magento 2 Page Builder?
Want to use git for managing static content in Magento 2?
:arrow_right: Check our git 4 Page Builder extension.
Further Info, Extension Description & Manual
Demos
Screenshots
Installation
Install via composer as any other Magento extension from github:
composer require jajuma/module-syntax-highlighter
Using Syntax Highlighter 4 Page Builder
Go to JaJuMa -> Syntax Highlighter -> Configuration
And enable & configure the extension.
Use HTML editor in Page Builder - Happy Coding!
License
The code is licensed under the MIT License (MIT)
Credits
Powered by PrismJS &
Many thanks @Oliver Geer for his amazing article on https://css-tricks.com/
that helped a lot when creating this module and
@Gordon Lesti for his work on syntax highlighting for Magento directives with PrismJS.
Other Magento 2 & Hyvä Themes Extensions by JaJuMa
-
:framed_picture: Performance & UX:
Ultimate Image Optimizer for Magento 2
AVIF & WebP Images, Lazy Loading, High-Resolution / Retina images -
:framed_picture: Performance & UX:
WebP Optimized Images for Magento 2
The #1 WebP Images Solution for Magento 2 -
:see_no_evil: SEO:
PRG Pattern Link Masking for Magento 2
Link Masking for Layered Navigation -
:cop: User Experience:
Shariff Social Share for Magento 2
GDPR compliant and customizable Sharing Buttons -
:movie_camera: Content Management:
Video Widget for Magento 2
Embedding YouTube videos, GDPR compliant with auto preview image & fully responsive -
:rocket: Performance & UX:
Page Preload for Magento 2
Faster faster page transitions and subsequent page-loads by preloading / prefetching -
:chart_with_upwards_trend: Marketing:
Matomo Analytics for Magento 2
Web Analytics - GDPR Compliant -
:honey_pot: Site Optimization:
Honey Spam Anti-Spam for Magento 2
Spam Protection - Reliable & GDPR Compliant -
:bell: Marketing:
Customer Registration Reminder & Cleanup for Magento 2
Increase Your Customer Engangement & Cleanup your Customer Account Data Automatically -
:mega: UX & Marketing:
Category Grid Callouts for Magento 2
Enrich Your Category Grids With Eye-Catching Callouts -
:thought_balloon: UX & Marketing:
Customer Satisfaction Feedback for Magento 2
Collect Valuable Feedback From Your Customers & Understand How To Satisfy Your Customers -
:sparkler: UX:
Auto Select Options for Magento 2
Automatically Select Configurable & Custom Options Based On Your Customer's Preferences -
:left_right_arrow: UX & Performance:
Back Forward Cache - bfcache for Magento 2
Enable bfcache for Magento 2 for improved UX & Core Web Vitals -
:heavy_division_sign: Accounting:
Dynamic Shipping Tax Plus for Magento 2
Dynamic Shipping Tax Calculation incl. pro-rata/proportional tax rates -
:mag: Search:
MySQL Search for Magento 2
MySQL Search for Magento 2 without Elasticsearch -
:bangbang: Performance:
Preload Critical Resources & Assets
Resource Hints for preloading important and critical resources -
:octocat: Content Management:
git 4 Page Builder
Manage & deploy Magento 2 Page Builder content via git -
:rocket: Performance:
Hyvä Inline CSS
Run Magento 2 without CSS file by inline all CSS -
:zap: Performance:
Smart Speculations Rules
Instant Page Navigations With Smart Data-Driven Prerendering Via Speculations Rules API -
:man_technologist: :free: Content Management:
Syntax Highlighter 4 Page Builder
Syntax Highlighting and more for Magento 2 Page Builder -
:triangular_flag_on_post: :free: UI & UX:
Awesome Hyvä for Hyvä Themes
Font Awesome 5 & 6 Icons for your Hyvä Themes Store -
:triangular_flag_on_post: :free: UI & UX:
Hyvä Flags for Hyvä Themes
Country & Language Flag Icons for your Hyvä Themes Store -
:ok_man: :free: User Experience:
Customer Navigation Manager for Magento 2
Easily manage the links in your Customer Account -
:heavy_division_sign: :free: Accounting:
Dynamic Shipping Tax for Magento 2
Dynamic Shipping Tax Calculation -
:question: :free: Content:
Hyvä FAQ Widget for Hyvä Themes
FAQ Widget for your Hyvä Themes Store -
:jigsaw: :free: Admin Tools:
Magento Power Toys
Tools and helpers, a.k.a "Toys", for Magento Admins
Other Services by JaJuMa
-
:shopping: JaJuMa-Market: Marketplace Software
Complete Online Marketplace Software Solution. For Professional Demands. Feature Rich. Flexibly Customizable. -
:shopping_cart: JaJuMa-Shop
Customized Magento Shop Solutions. -
:rocket: JaJuMa-Shop: Hyvä Magento Shop Development
Hyvä Magento Shop Development. -
:orange_book: JaJuMa-Shop: Magento Handbuch in Deutsch
Magento Handbuch in Deutsch. -
:card_index_dividers: JaJuMa-PIM
Product Information Management. Simple. Better. -
:heavy_plus_sign: JaJuMa-Develop: Magento 2 Extensions
Individual Solutions For Your Business Case. -
:paintbrush: JaJuMa-Design
Designs That Inspire. -
:necktie: JaJuMa-Consult
We Show You New Perspectives.
© JaJuMa GmbH | www.jajuma.de
No changelog yet
The vendor hasn't published a changelog. Tagged releases appear in the Versions tab.
| Version | Stability | QA Status | Compatibility | Released |
|---|---|---|---|---|
| 1.0.4 | stable | Fail | Magento 2.4.7-2.4.9 Details | 2025-01-13 05:56:59 |
| 1.0.3 | stable | Not tested | Not yet tested Details | 2024-02-06 03:29:57 |
| 1.0.2 | stable | Not tested | Not yet tested Details | 2024-01-24 07:24:20 |
| 1.0.1 | stable | Not tested | Not yet tested Details | 2023-07-17 03:03:16 |
| 1.0.0 | stable | Not tested | Not yet tested Details | 2023-05-30 11:02:51 |
No dependencies declared
This package's composer.json doesn't declare any required, suggested, replaced, or conflicting packages.
Compatibility
Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.
Code Quality
Advisory checks against the module's source. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge — a phpcs finding can't make a module incompatible.
Static analysis
Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.
PHPStan
Type-checks the module's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases. Cell → details modal.
Tests
Unit and integration suites, run for each applicable Magento and PHP version. A test failure speaks to the module's behaviour, not its compatibility with a Magento line, so it is reported here separately and never reddens the compatibility matrix.
Unit tests
| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | ||
| 2.4.8 | N/A | N/A | ||
| 2.4.9 | N/A | N/A |
Integration tests
| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | ||
| 2.4.8 | N/A | N/A | ||
| 2.4.9 | N/A | N/A |
Security
Security checks run directly against the module: an audit of its declared dependencies for known vulnerabilities (composer audit) and a scan of its source for malware and web-shell signatures. Each runs once. A malware detection fails the version outright.
Turn an existing module into recurring revenue.
If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.

