Language set as HTML not formating correctly when contains CSS/JS
When I load Monaco Editor (using language:'html') but if in the contents I have <style> or <script> tags, it will not format the contents of those tags, only the HTML tags like <body>, <div>...
For example:
<div>XXX</div>
<div><b>AAA</b> ccc <span>ddd</span></div>
<style type="text/css">
body{
padding:10px;
}
</style>
If you load this code in Monaco Editor you will see it will nicely format <div> and <b> and <span> but the contents of <style> will not be format as CSS, it will all be unformatted and with the same color.
This is possible in VSCode, but not in monaco editor, and I am also looking for a solution.
@yunbookf thank you! If you find a solution I would be glad if you could share it with me. I appreciate any help you can provide to solve this problem!
Any updates? I'm also searching for a solution.
I have the same need
me too