Reputation: 635
The monaco editor I use for web seems to understand where an HTML begins and ends. So it feels like it parses it. So can I use the parsing of monaco to create a nodes tree. Is it possible to do?
Ex: If I load an HTML file content in monaco editor can I use it to create a HTML node tree.
Upvotes: 0
Views: 339
Reputation: 53502
No, Monaco has no parser, just tokenizers for certain languages, which means it cannot give you a parse tree.
Upvotes: 1