Skip to content

JaJuMa-GmbH/syntax-highlighter-4-page-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

8 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿค“ 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

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 Extensions by JaJuMa

Other Services by JaJuMa

ยฉ JaJuMa GmbH | www.jajuma.de