Open boghyon opened 3 years ago
Hi @boghyon this will remain an issue as long as Plunker uses monaco-editor built-in syntax highlighting system based on monarch. The monarch-based syntax highlighting has well-known limitations due to its simplicity. In vscode
, syntax-highlighting is done using textmate grammars.
It is possible to port this more sophisticated highlighting to the browser using vscode-onigurama but it is not something I've yet attempted.
To Reproduce Steps to reproduce the behavior:
Expected behavior The attribute values should be all in the same color (e.g. blue) but they're not due to being multi-line. Only single-lined values are all blue.
Screenshots![plunk-xml-code-editor-screenshot](https://user-images.githubusercontent.com/12143247/96819330-a20b6a00-1423-11eb-9d72-31893e2d6780.gif)
Additional context Does Plunker come with its own code editor?![ace-editor-xml](https://user-images.githubusercontent.com/12143247/96819841-e6e3d080-1424-11eb-82e5-1b27c3cce9c9.gif)
In Ace, for example, I cannot reproduce the issue:
In case the editor is using Google's Prettify somehow, there is a known issue with handling XML: https://github.com/googlearchive/code-prettify/issues/563