Game Development Community

JEdit with TIDE questions

by Vern Jensen · in Torque Game Builder · 04/27/2007 (3:06 pm) · 3 replies

Anyone else here using JEdit with TIDE as their TorqueScript editor? I've started using it recently, and am pretty happy with it, but there are a couple little quirks I hope I can change.

1) Code that I bracket with /* and */ doesn't change color to the "commented code" color. Can I get this to work properly by changing a setting somewhere?

2) When I type the following

myFunction
{

}

it ends up doing this, putting a tab before my last bracket, when i did NOT type a tab:

myFunction
{

    }

I can backspace and type the bracket again, and it'll add a tab *again*. I hate it when software thinks it is smarter than me. Any way I can get it stop doing this? Just one of those little quirks that's annoying.

#1
04/27/2007 (9:46 pm)
Vern -- haven't used that software before, but the auto-tabbing thing is usually referred to as 'Smart Tabs' (yes, the irony is well known, haha) ... usually an option that can be disabled in options somewhere ... as for the /* */ code commenting ... as JEdit is just a regular text editor with syntax highlighting ... there should be a langauge file used specifically for TorqueScript ... most likely named TorqueScript.langaugeFileExtension in a fairly obvious folder structure ... (assuming here, based on other editor usage) ... in this file, you should be able to figure out how to add the /* */ commenting ... however, depending on JEdit's implementation .. it might be a bit difficult ... so my suggestion would be to compare the TorqueScript file against a C++ language file ... and locate the /* */ section in C++ and mimic it in the TorqueScript file ...

#2
05/03/2007 (2:17 pm)
Okay, took some time to figure it out by looking at the C file, but I got it, and here is what you do, for anyone else using JEdit with TIDE who wants better editing. Add this:

<PROPERTY NAME="lineUpClosingBracket" VALUE="true" />

near the top of the file. And add this near the middle:

<SPAN TYPE="COMMENT2">
            <BEGIN>/*</BEGIN>
            <END>*/</END>
        </SPAN>
#3
05/22/2007 (9:10 pm)
Hey, thanks a bunch for finding where to set this. Those dang tabs had been giving me a headache.