zikaari / monaco-editor-textmate

MIT License
120 stars 16 forks source link

Language configuration (comments) not adjusting properly #6

Open christosnc opened 5 years ago

christosnc commented 5 years ago

Hello,

In monaco-editor, each language has a configuration (type of comments, foldind, etc.). So if you are in html mode, the "toggle comment" key wraps the code in <!-- -->, if you are in css, the comments become /* */, etc.

This behavior stops working correctly if we have languages with embedded modes (ex. html with