The reason I want to limit this behaviour is that the only true correct way to do this is, as you say, to parse the entire document on the fly with every cursor position change in the document. And you must start at the top of the entire file to properly handle multi-line comments and multi-line cdata and may need to often read and parse to at least whatever end tag exists.
If this would only be done when the cursor is a very specific position it eliminates tons of needless parsing and reparsing wastefulness but still lets the user highlight open and close tags by properly positioning his/her cursor over the '<' or '>' char of any tag.
This wasteful reparsing just by moving the cursor may not impact short or even normal length files but may be a big slowdown with long or huge files with lots and lots of tags especially when working in the last half of the huge file.
So I wanted the user to control when they truly want or need to see this instead of just letting it happening repeatedly when moving the cursor across a tag.
Last edited by KevinH; 12-07-2020 at 02:20 PM.
|