RoyAwesome / WorldSmith

Open source Dota 2 Mod Editor
MIT License
59 stars 28 forks source link

Enabled LUA syntax highlighting and slightly restructured text file opening. #85

Closed thebigcheeze closed 9 years ago

thebigcheeze commented 9 years ago

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 .