HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

NewGen addon - TE Syntax Highlighting

07-08-2007, 04:17 PM#1
SFilip
TESH for Grimoire/NewGen pack.
This time based on DLL injection, works and feels much more native.
Features include:
-syntax highlighting
-code folding
-function AutoComplete
-parameter list pops up when it detects (
-Find and Replace

New in this version is a function list that shows you the function's code form blizzard.j or native definition from common.j (yes, yes, that thing like JassCraft or JSP).
Ctrl+clicking on a function will make this list pop up with the function you clicked on automatically loaded.
It can also disable that warning message that appears when you convert a trigger.

The 7z file is for manual installation, you probably won't need that so download TESH_install.

Installation: simply run TESH_Install.exe and specify the path to grimoire/NewGen. Optionally you can specify your Trigger Editor's title if you're using a non-English version (this can also be modified through TESH.conf).

To uninstall edit we.conf.lua and remove the line which loads TESH.dll. After that you can also delete the TESH directory.

changelog:
Code:
0.7
-much faster, large triggers now completely fold almost instantly
-Fold All button
-always Fold All option for specific triggers
-saves scroll position
-bug fixes, namely Ctrl+V and Ctrl+Z are no longer passed to the trigger editor
-F3 is the Find Next button now
-function list can now be merged with the trigger editor as well
-all constants defined in common.j and blizzard.j can be viewed through the function list
-you can import your own functions by putting a .j file with them in the includes directory
-AutoComplete can be made case-insensitive
-syntax check is now possible again, no vJass support though
-more color customization
-styles are now saved in a separate INI file that can easily be modified outside the program itself, you can also use this to share your own "themes"

0.6
-initial DLL version
Attached Files
File type: zipTESH_install.zip (737.0 KB)
File type: 7zTESH.7z (568.5 KB)
07-08-2007, 04:48 PM#2
Ryude
Works well, no bugs found so far. I love the code-folding feature.
07-08-2007, 08:21 PM#3
Thunder_Eye
Ah.. finally the Thunder_Eye (TE) Syntax Highlighting.
Awesome
07-08-2007, 11:13 PM#4
PitzerMike
Pretty cool.
Would be nice to have this in the standard distribution of NewGen Pack.

One thing I noticed:
If 'Hide warning message when converting' is supposed to suppress the warning when converting GUI triggers to custom JASS, it doesn't work for me. :(
Is it possible that it doesn't work for non-english editors?
07-08-2007, 11:43 PM#5
SFilip
Damn, once again I didn't consider those non-English versions...
ATM it's looking for a window with a "Warning" title, I'll see if I can find something universal. If not then you'll have to specify this title manually.
07-09-2007, 12:00 AM#6
Ryude
One thing I dislike is that when you try to change the font, the program seems like it's not responding and then finally the font changes. It would be nice if it said "Hold on while we change the font" so that I at least know that my computer is not frozen :P
07-09-2007, 02:00 AM#7
PipeDream
Grab the address of the call to whatever spawns the box and I can show you how to use the patch machinery grimoire provides to disable it.
07-09-2007, 05:17 AM#8
Av3n
Testin testin n its awesome!!!

-Av3n
07-10-2007, 02:44 PM#9
UnMi
Uh, like...
WOW!!!
I've been waiting for this, very impressive!
What would make it perfect now is a some sort of an auto-function case like JassCraft has.
07-10-2007, 03:26 PM#10
moyack
It's teh BEST!!!

Now my NewGenPack is almost perfect (99.5% of perfection). In addition to UnMi's comments, you should add this keywords to the highlighter: static and onDestroy.

BTW I have one question: is it possible to add custom libraries so your program can include them in the autocompletion??
07-10-2007, 03:51 PM#11
PitzerMike
With a bit of sql knowledge and the sqlite tool you can insert your own functions into funclist.db.

However an import tool would be handy.
I'm thinking of a special pjass mode where it would just throw all functions into the db, when a function with that name isn't already there.
I wonder if that would be useful.
07-10-2007, 04:00 PM#12
Vexorian
Quote:
Would be nice to have this in the standard distribution of NewGen Pack.
that would happen if Sfilip agrees and I get a good excuse to update newgen
07-10-2007, 06:26 PM#13
grupoapunte
wow great tool man! this saves a lot of time copying and pasting the code from other editors.

I have 2 suggestions:
- Make an option to see all function folded everytime you open a trigger
- Don't make the function completion setting case sensitive (probably many ppl won't agree with me) but i dont know if you ever used Visual Studio.NET you can type a function name in lowercase and the menu apears anyway and after the function initials are switched to uppercase or changed to its original definition. Of course this should only be for blizzard functions, not customs.
07-13-2007, 09:27 PM#14
Joker
This has gotten a shitload better since the 1st time you posted this on the helper site. Awesome Job.
07-13-2007, 09:39 PM#15
grim001
Quote:
Originally Posted by grupoapunte
- Make an option to see all function folded everytime you open a trigger

This sounds good to me, would save time navigating the code.

This is great, my only issue is that the spacing gets horribly messed up if I revert to normal text mode, or copy/paste it out of the window. I believe the issue is related to tab characters somehow.