ckeditor5 icon indicating copy to clipboard operation
ckeditor5 copied to clipboard

Syntax highlight for Source Editing

Open Acrophost opened this issue 3 years ago • 4 comments

📝 Provide a description of the new feature

Currently the Source Editing plugin enables changing into source mode, where all the code has uniform look and with larger content can be hard to read and seem less organised. Introducing optional color coding to Source Editing would make it more clear and would improve the experience of using the plugin.


If you'd like to see this feature implemented, add a 👍 reaction to this post.

Acrophost avatar Dec 15 '22 14:12 Acrophost

Would love to see this implemented.

SpaYco avatar Apr 28 '23 20:04 SpaYco

really needed

nestle49 avatar Feb 07 '24 09:02 nestle49

is there any blocker for this to be implemented?

I'm guessing all that needs to be done is updating formatHtml?

https://github.com/ckeditor/ckeditor5/blob/a8f352784dc5715287431509d878f5998e45827b/packages/ckeditor5-source-editing/src/utils/formathtml.ts

SpaYco avatar Jan 16 '25 21:01 SpaYco

Hey everyone! 👋

We’ve recently released the premium Enhanced source code editing plugin in which we wanted to improve the source editing within CKEditor 5. It adds the reported here syntax highlighting, and it expands on the basic source editing functionality, covering features like code completion and folding to start with. It's also available in all editor types.

Play with it and let us know what you think!

andrzejkala avatar Feb 26 '25 07:02 andrzejkala