jajuma/module-syntax-highlighter

JaJuMa Syntax Highlighter 4 Page Builder for Magento 2

Installs: 6 076

Dependents: 0

Suggesters: 0

Security: 0

Stars: 5

Watchers: 1

Forks: 1

Open Issues: 0

Language:CSS

Type:magento2-module

1.0.4 2025-01-13 05:55 UTC

This package is auto-updated.

Last update: 2025-03-13 06:31:16 UTC


README

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

Hyvä Themes Mage-OS Magento

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?
➡️ 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

Other Services by JaJuMa

© JaJuMa GmbH | www.jajuma.de