EnlighterJS / Plugin.TinyMCE

:pencil: Official EnlighterJS Plugin for TinyMCE
https://tinymce.enlighterjs.org
Mozilla Public License 2.0
11 stars 6 forks source link

Feature Request: Highlight lines when creating the code snippet #3

Closed gcraig14 closed 4 years ago

gcraig14 commented 4 years ago

Currently we can highlight specific lines in Enlighter, but only as an edit after creation. Ideally we can highlight the desired lines as part of the creation dialog. Need an ability to highlight the desired lines as part of the creation dialog.

ajtruckle commented 4 years ago

I like this idea. I don't know if it is possible. But then one could argue that all the parameters be available, like starting line number etc. too.

I will see how this discussion goes!

AndiDittrich commented 4 years ago

it's already implemented for Gutenberg

gcraig14 commented 4 years ago

Is there a chance to implement it for the Classic editor?

AndiDittrich commented 4 years ago

it's a bit difficult because it will mess up the code insert dialog - the design goal was to avoid this

ajtruckle commented 4 years ago

it's a bit difficult because it will mess up the code insert dialog - the design goal was to avoid this

This was what I was thinking. Isn’t a hardship to click another button rather than bloat your code.