Our editor needs to be able to work with pretty big files, in order to make this possible we offer the ability to turn on/off some features.
These pretty much come down to turning off syntax highlighting and grammar parsing,
We are working with the XML addin, and the way we are turning these off is by unregistering the XmlTokenTaggerProvider to turn off syntaxHighlighting
and unregistering IParser to turn off grammar parsing.
This approach mostly works but seems a bit clumsy, is their a neater way?
If this is a valid approach then we hit 2 problems,
- When we unregister the XmlTokenTaggerProvider the syntax highlighting persists on screen until its scrolled away and back (when its re-registered it comes on straight away), can we manualy force a refresh?
- When we unregister the parser the parserdata remains (this is easily cleared manually which removes the outlining) but when its re-registered a parse is NOT initiated so the outlining is not re-created (a change to the document causes a parse and the outlining to come back), can we manually force this?