Game Development Community

dev|Pro Game Development Curriculum

TorqueScript (for Torque Game Builder) syntax highlighting in ConTEXT

by Rohit Kanwar · 08/17/2006 (12:15 pm) · 3 comments

Download Code File

Howto:

Download the .CHL file (the "code file" mentioned above), and add it to ConTEXT's /Highlighters folder. The next time you launch ConTEXT, it will be able to provide syntax highlighting for the version of TorqueScript and Torque Game builder 1.1.0.

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
More information:

Apart from including the usual TorqueScript keywords like "if/else", "return", etc., I have also tried to include all the classes, methods, callbacks and fields exposed to script in TGB 1.1.0. Also included are the system variables and the profiler entries for TGB. My reference for this information was the "TGB Reference.pdf" document distributed with TGB.

This highlighter does not recognize the classes and methods of TGE and TSE. If you need a highlighter for these two engines, please feel free to use this highlighter as a base to build your own.

I am a complete newbie to TGB, and so I may have made some bloopers. Please feel free to correct me if you find one.

About the author

Recent Blogs


#1
08/05/2006 (10:05 am)
Good work Rohit Kanwar.

There is already a TGE/TSE ConTEXT highlighter available for those who need it.

Click
#3
08/24/2006 (10:52 am)
Thanks, guys.

@Tim: Thanks for letting me know. I earlier found only the UltraEdit highlighter.