quill
quill copied to clipboard
Choose language for syntax highlighting
Thank you for this great library!
So I know Quill.js supports syntax highlighting, using highlight.js. The way it works is that Quill.js automatically detects the language of your code block and applies the appropriate syntax highlighting.
What I'd like, though, is the ability to choose what language my code block is for highlighting. In other words, to be able to choose the language from a dropdown above the code block. This way, users know for a fact that the language they're writing in is being used for syntax highlighting.
Is there a way to do this out of the box? Or is there an elegant way to add a CodeMirror or Ace editor block inside the Quill editor!
Thank you again for putting this project together! I really appreciate your effort.
Did you ever figure anything out for this?
2022 still nothing, how is this possible .(
Again it would be really great to get some clarification on this, if anyone can... would be really useful for sure
Please someone, hljs does not detect html code properly, so its super annoying to go back in and change the stuff by hand