Open godai78 opened 3 years ago
@godai78 Can you point us to an existing application where the feature works as expected? Have you seen this before somewhere? (web app, native app, etc.)
Haven't seen this introduced via shortcode. Only by a UI interface item and this works just fine in CKE5. I'll search the web for that, though.
Right now the markdown syntax is converted immediately after the last ` is added. IF this waited for either a language code (like PHP of HTML) or space and only THEN convert, this would do the trick.
@oleq Hi, I also want this feature.
Current
```
, then insert code block.
Expected
```language + ENTER
, insert code block and set language.
For an ideal implementation of this feature check out the Typora markdown editor.
(1) When you type ```c it offers to auto-complete based on known languages. (2) Then you can change the language easy after the fact by simply clicking on the chosen language:
As a customer about to purchase CKEditor5 we'd really love to see this feature added - thanks.
There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may still be relevant, so if you're interested in the solution, leave a comment or reaction under this issue.
This should not be closed.
There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may still be relevant, so if you're interested in the solution, leave a comment or reaction under this issue.
📝 Provide detailed reproduction steps (if any)
✔️ Expected result
I would like to add a language type to the code block.
❌ Actual result
The code blocks by default turn into plain text block without any ability to control/change it.
📃 Other details
If you'd like to see this fixed sooner, add a 👍 reaction to this post.