UltraEdit Syntax Highlighting for Torque Scripting Language
by St · 01/03/2004 (3:19 pm) · 4 comments
UltraEdit is a slim and powerful Editor for Windows. An Evaluation copy can be downloaded from their homepage. Full version costs something ~35.00 USD.
UltraEdit allows to add highlighting for custom languages, and the following steps will enable highlighting for TorqueScript:
1) Menu "Advanced"->"Configuration"->Tab "Syntax Highlighting"
2) Open Wordlist ("Full path name for wordlist" - Button "Open")
3) Copy/paste the following section after the end of the Wordlist file:
4) save the Wordlist file.
From now on, all files with the extension ".CS" or ".MIS" will be opened with syntax highlighting applied (see screenshot). TorqueScript functions are listed automatically in the function list.
To adjust the colors to your preferences:
1) go to "Advanced"->"Configuration"->Tab "Syntax Highlighting".
2) In the Language Dropdown Box, choose "TorqueScript"
3) In the Color Group Dropdown Box, choose the group to change (e.g. "Torque Keywords" at the end of the list)
4) Adjust Color.
Have fun,
...thomas
UltraEdit allows to add highlighting for custom languages, and the following steps will enable highlighting for TorqueScript:
1) Menu "Advanced"->"Configuration"->Tab "Syntax Highlighting"
2) Open Wordlist ("Full path name for wordlist" - Button "Open")
3) Copy/paste the following section after the end of the Wordlist file:
/L6"TorqueScript" Line Comment = // Block Comment On = /* Block Comment Off = */ Escape Char = \ String Chars = "' File Extensions = CS MIS
/Delimiters = ~!@^&*()-+=|\/{}[]:;"'<> , .?
/Function String = "function [a-zA-Z_]*)[~;]"
/Indent Strings = "{"
/Unindent Strings = "}"
/C1"Torque Keywords"
else
or
break
return
while
if
for
continue
function
new
datablock
case
switch$
switch
default
package
true
false
exec
echo
/C2"Torque Local Vars"
** %
/C3"Torque Global Vars"
** $
/C4"Torque Operators"
==
!=
>=
<=
&&
||
::
--
++
$=
!$=
<<
>>
+=
-=
*=
/=
%=
&=
^=
|=
<<=
>>=
@
?
[
]
+
-
*
/
<
>
|
.
!
&
^
~
=4) save the Wordlist file.
From now on, all files with the extension ".CS" or ".MIS" will be opened with syntax highlighting applied (see screenshot). TorqueScript functions are listed automatically in the function list.
To adjust the colors to your preferences:
1) go to "Advanced"->"Configuration"->Tab "Syntax Highlighting".
2) In the Language Dropdown Box, choose "TorqueScript"
3) In the Color Group Dropdown Box, choose the group to change (e.g. "Torque Keywords" at the end of the list)
4) Adjust Color.
Have fun,
...thomas
#2
Anyways sorry to hijack the thread or demean your work. That isn't my intention. Just pointing out a more complete word file :) Nice to see others use UE though. I've used it for so long I can't even remember. One of the best programming editors i've ever used.
01/12/2004 (4:48 pm)
No offense on this, because its great, but I had built one a long while back that is a bit more complete and should be on the UE webpage. At least, I had submitted it to Ian and he said he'd put it up, so I assume its there. My version just also has most all of the internal objects, methods, and properties.Anyways sorry to hijack the thread or demean your work. That isn't my intention. Just pointing out a more complete word file :) Nice to see others use UE though. I've used it for so long I can't even remember. One of the best programming editors i've ever used.
#3
03/29/2004 (2:33 pm)
St
#4
11/13/2004 (8:26 am)
John - just so you know I didn't find your one on the UltraEdit site. 
Torque Owner Mark Harmon