Open westonruter opened 7 years ago
Let's de-prioritize this for now.
Maybe I could help out on this when you reprioritize it.
I maintain a plugin called the HTML Editor Syntax Highlighter. I've written a custom Codemirror syntax mode that highlights everything in the post/page text editor:
[squarebrackets/]
syntax<!--more-->
<!--nextpage-->
Adding this to WP-core for the Gutenberg editor would be awesome!
@arniebradfo hi! I can see that I actually reached out to you yesterday on the support forum on this topic: https://wordpress.org/support/topic/html-editor-syntax-highlighter-codemirror-being-added-to-core-in-4-9/
I agree, extending the htmlmixed
mode with support for highlighting shortcodes and WordPress-specific comments would be really useful in WordPress, even though the post editor isn't a current target for integrating CodeMirror 4.9. It would still be useful now for when that happens, and it would be useful in the short term for a Gutenberg integration.
Also, CodeMirror should be integrated with the Custom HTML block in Gutenberg, so that's another thing that would be in scope here.
Your insights and experience are appreciated!
See https://github.com/WordPress/gutenberg/issues/1733