Here's a nifty little program that injects a scintilla-based editor inside the Trigger Editor thus allowing syntax highlighting and some other stuff (screenshot).
Two things you should know about:
-The component refreshes the state every 0.5 seconds by default. This can be changed through the Options dialog (right click on the scintilla component and click on Options in the popup menu). When the custom text area is not active (in a GUI trigger, trigger comment etc.) then it will check every 2 seconds to see if the state changed, this can also be changed through the options dialog.
-The component doesn't always repaint itself so you might want to hit the Refresh button if you notice it looking odd (certain parts becoming gray for instance). This doesn't happen often when you're actively using it (usually after a minimize) so its not much of a problem. It is also possible to refresh it automatically every couple of seconds, this can again be turned on through the options dialog.
Enjoy, hopefully someone finds this useful
Two things you should know about:
-The component refreshes the state every 0.5 seconds by default. This can be changed through the Options dialog (right click on the scintilla component and click on Options in the popup menu). When the custom text area is not active (in a GUI trigger, trigger comment etc.) then it will check every 2 seconds to see if the state changed, this can also be changed through the options dialog.
-The component doesn't always repaint itself so you might want to hit the Refresh button if you notice it looking odd (certain parts becoming gray for instance). This doesn't happen often when you're actively using it (usually after a minimize) so its not much of a problem. It is also possible to refresh it automatically every couple of seconds, this can again be turned on through the options dialog.
Code:
Changelog:
0.4
-fixed the issue where TESH would constantly update triggers thus always making the map unsaved
-Find and Replace added
-you can now load the header "on the fly" by right clicking on the component and selecting Load Header
0.3
-it is now possible to include a .j file by putting it into the includes directory - this way TESH will import any functions that file contains so that they would be highlighted and put on AutoComplete
-you can now syntax check your current trigger (using PJass) by pressing a button
-TESH now automatically applies the changes as you type, but the Save/Discard options can still be enabled from the options
-title of the window TESH tries to find ("Trigger Editor" by default) can be changed through the INI file, this should make it compatible with non-English WE versions
0.2.1
-fixed a bug where null, true and false were impossible to change/remove
0.2
-fixed the max height constrain
-code folding now works fine for constant functions, private methods etc.
-customizable highlighting colors and style
-customizable line numbers font
-option to undo the changes that happen after switching a trigger
0.1
-initial release
Enjoy, hopefully someone finds this useful