shazahm1 / WP-Syntax

WP-Syntax WordPress Plugin
connections-pro.com
GNU General Public License v2.0
13 stars 11 forks source link

[Feature request] – Gutenberg block #31

Closed webliberty closed 5 years ago

webliberty commented 5 years ago

Please update the plugin for compatibility with WordPress 5.0 and add the ability to insert code using a Gutenberg block.

shazahm1 commented 5 years ago

Not sure this is going to happen... WP Syntax use geshi to process text and do the highlighting server side. In the Gutenberg world this does not work. Example you add you code to to a block but you would not see it highlighted until you save the page and view it on the frontend. Yes, I know this is exactly how this works with the classic editor, but the Gutenberg editor is supposed to be visual.

In addition, Gutenberg's own code block will begin highlighting code afte CodeMirror 6 has been completed and merged into WP.

webliberty commented 5 years ago

Thank you, I understood your thought, this is a logical explanation.

Probably the need for code highlighting plugins will disappear after the introduction of CodeMirror 6.