Game Development Community

dev|Pro Game Development Curriculum

Edit TorqueScript Files in Xcode -- Installer

by Paul Scott · 09/01/2006 (3:01 pm) · 7 comments

Download Code File

GG Mac Guru here.
Got some goodies for y'all.
Read on:

Xcode is a free Macintosh programming environment from Apple.
Anyone with MacOSX can download and run Xcode, from Apple's Developer Connection site.
Xcode is a very clean, streamlined IDE that provides project management, mass file searching, text editing, code analysis, cross compiling for Intel & PPC hardware, and debugging. Bonanza.

TorqueScript is the scripting language that Torque uses, and that anyone who uses Torque will need to browse & edit.
The Xcode text editor supports syntax highlighting & code browsing for many languages, but not for all, and not for TorqueScript. Misfortune.

The good news is that the syntax highlighting and code browsing features of Xcode are configurable via small script files called language specs.
For a while now, I've included these files with Torque Game Engine & Torque Game Builder. But unless you read the 'getting started.txt' file, you would not have known it. You read the file, right? No? Misfortune.

These files have to be installed in a particular place on your hard drive, so I've built a little installer to make things easy. Just run the installer, then quit & restart Xcode, and you should be able to look at TorqueScript in lovely vibrant color. Joy.

Making the installer was pretty easy. I used PackageMaker. Took about 5 min, start to finish.

Now, this feature of Xcode is not officially documented, so the function popup may be a little incomplete from time to time, and these little files will not let you debug scripts in Xcode. If Apple wants to document the plugin interface to Xcode, I'd love to make a better version of this stuff, but that's up to Apple's tools team, for the time being.

Just so you know, this stuff comes with no guarantees. It's just something that I made for myself personally, that I use every day, that I thought y'all would like.

Share and Enjoy.

/Paul

#1
09/01/2006 (3:53 pm)
I read the files... errr... sometimes.

Thanks Paul.

STef
#2
10/08/2006 (8:45 am)
Sweet! Thanks!
#3
11/15/2006 (9:48 am)
excellant!
#4
01/07/2007 (9:06 am)
I think that Xcode will even handle indentation for it if you include the line "SupportsIndentation = YES;" in the language specification file. I just added this and turned on syntax-specific indendation in the Xcode preferences, and it's working well so far.
#5
02/02/2008 (8:32 am)
Has anyone updated this to work with the new Language Spec format in XCode 3 under Leopard? These older files don't work. Thanks for making this!
#6
06/04/2008 (9:40 pm)
Yo tambien tengo el mismo problema, ojala alguien pudiera publicar un tema para el xcode para leopard. Gracias!!!
#7
11/28/2008 (8:03 pm)
ownage!