Edit TorqueScripts in ProjectBuilder
by Paul Scott · 08/04/2003 (12:52 pm) · 6 comments
Download Code File
The new December tools from Apple ( Project Builder 2.1 ) will not automatically open torque script files anymore. The good news is, the file types & syntax highlighting preferences are now truly customizable.
This archive contains 2 files that will allow Project Builder to see and perform syntax highlighting on torque engine script files. Place these files in /Developer/Project Builder Extras/Specifications/ .
You will have to create the Specifications folder.
Known problems: the function popup does not work correctly.
share and enjoy
-paul
The new December tools from Apple ( Project Builder 2.1 ) will not automatically open torque script files anymore. The good news is, the file types & syntax highlighting preferences are now truly customizable.
This archive contains 2 files that will allow Project Builder to see and perform syntax highlighting on torque engine script files. Place these files in /Developer/Project Builder Extras/Specifications/ .
You will have to create the Specifications folder.
Known problems: the function popup does not work correctly.
share and enjoy
-paul
About the author
#2
09/23/2004 (7:32 am)
Woo! I knew this had to exist someplace.
#3
Add (without the double quotes)
"SupportsIndentation = YES;"
below SourceScannerClassName in the Torque.pblangspec
Next the files should be placed in (you may need to create the specifications folder)
/Developer/Application Support/Apple/Developer Tools/Specifications
04/10/2005 (11:15 am)
To get these files to work under xcode 1.5 you will need to do the following:Add (without the double quotes)
"SupportsIndentation = YES;"
below SourceScannerClassName in the Torque.pblangspec
Next the files should be placed in (you may need to create the specifications folder)
/Developer/Application Support/Apple/Developer Tools/Specifications
#4
i.e.
/Library/Application\ Support/Xcode/Specifications/
or
~/Library/Application\ Support/Xcode/Specifications/
05/23/2005 (2:18 am)
For xCode 2.0 (still applying Russell's mods), the files can be placed in either your local or the global libraryi.e.
/Library/Application\ Support/Xcode/Specifications/
or
~/Library/Application\ Support/Xcode/Specifications/
#5
How do I start a new cs script in Xcode though?
If I open a .cs file the highlighting and stuff work, but I don't know how to create a new cs file that uses it.
Thanks!
07/08/2005 (11:27 pm)
Im a total newbie and this is exactly what I was looking for.How do I start a new cs script in Xcode though?
If I open a .cs file the highlighting and stuff work, but I don't know how to create a new cs file that uses it.
Thanks!
#6
A new .cs script can be made with File -> New Empty File, then adding the .cs extension when saving. After it's saved the language definitions will be applied.
Ed: As an addendum to this, I've tried unsuccessfully to give .cs files an Xcode icon (without editing each one individually) - I went as far as going into the Property List Editor and creating new entries in the Xcode plist :P Does anyone have any suggestions as how to do this? The main reason I'm after this is to be able to tell the .cs files from the .dso files visually in Finder. It's a small thing, I know, but I'm finicky ;)
07/31/2006 (10:31 am)
This resource (with the steps in the comments above) works fine in Xcode 2.3 .A new .cs script can be made with File -> New Empty File, then adding the .cs extension when saving. After it's saved the language definitions will be applied.
Ed: As an addendum to this, I've tried unsuccessfully to give .cs files an Xcode icon (without editing each one individually) - I went as far as going into the Property List Editor and creating new entries in the Xcode plist :P Does anyone have any suggestions as how to do this? The main reason I'm after this is to be able to tell the .cs files from the .dso files visually in Finder. It's a small thing, I know, but I'm finicky ;)

Torque Owner Paul Dolce