How to use monaco editor for syntax highlighting?
问题 I developing a code based chat component. Every chat is some code snippet. For user input, I am using monaco-editor. It works fine. But as soon as user hits send button, I get raw input from Monaco editor. I need to append this user input to chat list and again highlight this input. Is there a way I can use Monaco editor to do this? Or do I have to use highlight.js along with Monaco? 回答1: I had the same problem so I created an issue #1171: https://github.com/Microsoft/monaco-editor/issues