WordPress / better-code-editing

[✅ Merged into 4.9-alpha] Better Code Editing WordPress plugin
https://wordpress.org/plugins/better-code-editing/
38 stars 16 forks source link

Integrate with Text mode and Custom HTML block in Gutenberg editor #10

Open westonruter opened 7 years ago

westonruter commented 7 years ago

See https://github.com/WordPress/gutenberg/issues/1733

westonruter commented 7 years ago

Let's de-prioritize this for now.

arniebradfo commented 7 years ago

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:

Adding this to WP-core for the Gutenberg editor would be awesome!

westonruter commented 7 years ago

@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!