Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code snippet feature #5769

Open
jodator opened this issue Nov 21, 2019 · 12 comments
Open

Code snippet feature #5769

jodator opened this issue Nov 21, 2019 · 12 comments
Labels
support:2 An issue reported by a commercially licensed client. type:feature This issue reports a feature request (an idea for a new functionality or a missing option).

Comments

@jodator
Copy link
Contributor

jodator commented Nov 21, 2019

📝 Provide a description of the new feature

NOTE: CKEditor 5 already offers code blocks (see https://ckeditor.com/docs/ckeditor5/latest/features/code-blocks.html) which is a simpler version of this feature. Code snippets, on the other hand, are meant to be richer code blocks, a bit like an embedded IDE inside CKEditor 5.

  • The proper code editing experience.
  • Embedded code editor and syntax highlighting.
  • Most likely, will only support comments and track changes on the entire code snippet.
  • Important: it seems totally feasible to integrate it with real-time collaboration editing if we use an code editor like Monaco.

We'll be happy to hear your feedback on this feature to know how to shape it.


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

@jodator jodator added the type:feature This issue reports a feature request (an idea for a new functionality or a missing option). label Nov 21, 2019
@jodator jodator added this to the backlog milestone Nov 21, 2019
@jodator jodator mentioned this issue Nov 21, 2019
@lflare
Copy link

lflare commented Dec 19, 2020

It's been a year since this issue was created, is there any current progress on it that I can help contribute to? Syntax highlighting at the very least, with highlight,js or alternatives is amongst my top priorities right now.

@rhukster
Copy link

Monaco integration would be amazing 👍🏻

@regischen
Copy link

Currently, syntax highlighting is a feature that can maximize the user experience

@good-praxis
Copy link

What are the downsides to Monaco integration?

@Joeycz
Copy link

Joeycz commented May 12, 2021

Does this feature have any specific schedule?

@shaozj
Copy link

shaozj commented Nov 3, 2021

Is there any current progress on it ?

@pomek pomek removed this from the backlog milestone Feb 21, 2022
@wimleers
Copy link

There is strong interest in this from the Drupal side too: https://www.drupal.org/project/codesnippet/issues/3269387#comment-14490254

@antoniotejada
Copy link

antoniotejada commented May 2, 2022

FWIW I implemented syntax highlighting for Trilium (which uses CKEditor5) with a simple Trilium widget, see https://github.com/antoniotejada/Trilium-SyntaxHighlightWidget

@zgpnuaa
Copy link

zgpnuaa commented Sep 16, 2022

Is there any current progress on it ?We are looking forward to syntax highlighting.

@zgpnuaa
Copy link

zgpnuaa commented Sep 16, 2022

I successfully configured this plug-in CKEditor5-CodeBlock-With-Syntax-Highlight in ckeditor5. It is great in edit mode, but it does not display correctly in preview mode.
image

@CKEditorBot
Copy link
Collaborator

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 be relevant, so if you're interested in the solution, leave a comment or reaction under this issue.

@ba1q1
Copy link

ba1q1 commented Oct 8, 2023

May I ask what is the current progress of the code highlighting function? Or is there any other plugin solution?

@aldonace-wu aldonace-wu added the support:2 An issue reported by a commercially licensed client. label Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support:2 An issue reported by a commercially licensed client. type:feature This issue reports a feature request (an idea for a new functionality or a missing option).
Projects
None yet
Development

No branches or pull requests