Free Syntax Highlighter

Auf Lager

Magento2 CMS Extension
Code Editor with syntax highlighting for HTML (with Magento Markup Tags), XML, CSS

Backend: Demo-Bereich (Username: demo PW: demo123)

Documentation: SyntaxHighlighter.pdf

NEW: use composer to install the extension

  composer config repositories.snmportal composer
  composer require snmportal/module-syntaxhighlighter

The editor can replace the default Magento textarea editor and are used as a supplement to the CMS editor TinyMCE. As an additional option, it is also in the frontend possible text display in different colors. To highlight the Magento Markup tags in the editor, we have the additional Magento2 Directives integrated into the language HTML. In the standard configuration, we defined the already most meaningful textarea-Fields. CMS pages and blocks, product and category content, newsletter templates and transactional e-mails. Additional text areas may be added to the configuration through simple jQuery selector. On the website you have the possibility to insert blocks of code on a Magento widget or a "data-bind".

Test \{\{block snm="dfasfdasfd"\}\} \{\{widget type="Snmportal\SyntaxHighlighter\Block\Widget\Cm" template="widget/cm/default.phtml" mode="magento" code="%3Cb%3ETest%3C%2Fb%3E"´\}\}

Useful keybindings:
SHIFT + TAB: Auto-indent
CTRL+SHIFT: Autocompletion
Ctrl-F / Cmd-F : Start searching
Ctrl-G / Cmd-G: Find next
Shift-Ctrl-G / Shift-Cmd-G: Find previous
Shift-Ctrl-F / Cmd-Option-F: Replace
Shift-Ctrl-R / Shift-Cmd-Option-F: Replace all
Alt-G: Jump to line
For more keybindings see the manual page from Codemirror

Mehr Informationen
Version 2.4.4
Compatibility 2.1.x,2.2.x,2.3.x,2.4.x
Last Updated 21.06.2021
Änderungsprotokoll Version 2.4.6
Update and Check for Magento 2.4.x
Version 2.4.5
Update and Check for Magento 2.3.1
Fix widget replacement
Fix insert image
Extension of the media browser to navigate to the current image in the tree.

Version 2.4.0
Update and Check for Magento 2.3
Version 2.3.1
Upgrade CodeMirror to 5.40.0
New Option LineWrapping

Version 2.2.5
Fix update Event, Exmpalte E-Mail Template, Thanks to Jeremy for the error report
Version 2.2.2
Fix configuration decode (Magento 2.2) Version 2.2.1
Fix Category Editor Popup Version 2.2.0
Ready for Magento 2.2 Version 2.1.1
Fix insert widget overwrite left widget Version 2.1.0
Select and update current widget over button "Insert Widget"
Eigene Bewertung schreiben
Nur eingetragene Benutzer können Rezensionen schreiben. Bitte einloggen oder erstellen Sie einen Account