In the course of enabling LUA syntax highlighting, I converted the TextEditorStyle enum to a class to enable the usage of the "GetHighlightingStrategy" method to give the responsibility of which highlighter to use over to the TextEditorStyle entirely.
Additionally, added a utility class "Stopwatches" which allows easy access to gather timing information.
In the course of enabling LUA syntax highlighting, I converted the TextEditorStyle enum to a class to enable the usage of the "GetHighlightingStrategy" method to give the responsibility of which highlighter to use over to the TextEditorStyle entirely.
Additionally, added a utility class "Stopwatches" which allows easy access to gather timing information.
See example usage in VirtualTextDocument.cs .