Slickedit setup for Torquescript!
by Alex Rice · 07/24/2005 (3:15 pm) · 12 comments
Draft 4 - August 16th 2005
Download the HOWTO PDF with lots of screenshots and the supporting files here:
mindlube.com/garagegames-forum/TorquescriptSlickeditTutorial.zip ZIP 0.8 MB
NEWS
The following features are working in the current release of this HOWTO:
syntax coloring
smart code indenting and pasting
context tagging for local and global torquescript functions
API tagging for imported classes, commands, fields, global functions, and console methods
symbol completion popup
parameter info popup
awareness of package namespaces and class namespaces
alias/template expansion
Download the HOWTO PDF with lots of screenshots and the supporting files here:
mindlube.com/garagegames-forum/TorquescriptSlickeditTutorial.zip ZIP 0.8 MB
NEWS
The following features are working in the current release of this HOWTO:
syntax coloring
smart code indenting and pasting
context tagging for local and global torquescript functions
API tagging for imported classes, commands, fields, global functions, and console methods
symbol completion popup
parameter info popup
awareness of package namespaces and class namespaces
alias/template expansion
About the author
#2
07/28/2005 (9:37 am)
@Joseph, good idea- I will probably put the appendix 1 and 2 as separate downloads as text files. However it shouldn't be hard to copy paste from multiple pages- just shift-click.
#3
After draft 2 of this document, I got some really good feedback from Slickedit support:
[quote]
08/03/2005 (12:47 am)
Whew! This is turning out to be a lot more in depth than I thought. Almost done with the next draft of this howto. Here is the gist of it. If anyone wants to be a beta tester, so to speak, of this howto then please let me know After draft 2 of this document, I got some really good feedback from Slickedit support:
[quote]
#4
08/15/2005 (11:00 pm)
Be sure to check out the new .zip file with draft 3 of the PDF. It contains lots of screenshots that show the power of Slickedit's context sensitive symbol tagging for parameter info, functions and classes.
#5
08/16/2005 (12:06 pm)
Draft 4 contains a couple of typos fixed in the PDF
#6
08/16/2005 (12:08 pm)
GG notified me that I am allowed to keep the screenshots and funcion/class listings in this resource. (which would otherwise be violating the EULA) Thanks GG
#7
It is causing some freeze-ups for me and I am checking with slickedit support. I want to keep the callback because it inserts an implicit global namespace which is real useful for getting symbol completion (CTRL-SPACE) to work sensibly.
08/18/2005 (4:01 am)
If you are getting freeze-ups while editing certain torquescript files, trying commenting out this callback in slickedit.e then hitting F12 to compile the file.It is causing some freeze-ups for me and I am checking with slickedit support. I want to keep the callback because it inserts an implicit global namespace which is real useful for getting symbol completion (CTRL-SPACE) to work sensibly.
// fake out an implicit import of namespace 'Global'
void _torquescript_after_UpdateContext()
{
//message("in _torquescript_after_UpdateContext() of torquescript.e");
if (tag_find_context("Global",true,true,true,null) <= 0)
{
tag_insert_context(0,"Global","import",
p_buf_name,1,0,1,0,1,1,'',
VS_TAGFLAG_anonymous,'');
}
}
#8
Tools > Options > General > Context tagging > "show info for symbol under mouse" will also clear up the freezing problem.
08/26/2005 (1:36 am)
Instead of commenting out that useful function _torquescript_after_UpdateContext(), instead I have found that turning offTools > Options > General > Context tagging > "show info for symbol under mouse" will also clear up the freezing problem.
#9
Also I just realized that the context tagging and syntax expansion is case sensitive but should not be. For the next draft of the howto I will address that I'm sure it's an easy fix to torquescript.e
08/26/2005 (5:53 pm)
Slickedit sent me a .dll hotfix for the above freezing problem. If anyone has enountered it , let me know and I will send the hotfix.Also I just realized that the context tagging and syntax expansion is case sensitive but should not be. For the next draft of the howto I will address that I'm sure it's an easy fix to torquescript.e
#10
Here is the technical reason why the torquescript mode is only partially case in-sentitive Feedback from Slickedit support:
08/29/2005 (6:06 pm)
An annoying problem with the torquescript support in Slickedit: because it's based on C language parsing, it is case sensitive. torquescript is not case-sensitive. This is a problem. However, in most cases it does not interfere with regular torquescript editing tasks. But we will never get 100% correct torquescript support because of this.Here is the technical reason why the torquescript mode is only partially case in-sentitive Feedback from Slickedit support:
Quote:Turning off "Case sensitive" in the color coding options dictates the handling of case sensitivity, and the way the p_LangCaseSensitive property is set (in Slick-C).
Some of the code in our "C" language support adapts to case-insenstivity, but since almost all "C" derivative language languages are properly case sensitive, the majority of the code assumes case-sensitivity. I do not reguard that as a bug.
The only workaround is to write your own syntax expansion and context tagging support...
#11
02/22/2006 (6:26 pm)
Cheers, I just bought a torque licence and I was hoping someone would've added SE support. Very well laid out PDF
#12
02/22/2006 (6:55 pm)
Thanks Nick, glad you are finding it useful. To be honest I am currently using codeweaver/torquedev. I ran into a bunch of snafus trying to get debugging and full syntax support in Slickedit, for torquescript. however the basics are all there.
Associate Joseph Euan
Would it not be better to just put all that code in to a single .txt file so people don't have to copy and paste code from 130+ pages?
Rest of the PDF looks cool btw, looks easy to follow... nice one.