Game Development Community

Syntax coloring for Torque Script on Mac?

by Mike Berg · in Torque Game Engine · 06/23/2006 (7:30 am) · 18 replies

Does anyone know if syntax coloring for Torque Script is available for XCode, BBEdit or TextWrangler?

Thanks!
-Mike

#1
06/23/2006 (11:35 am)
There was a file included in the Mac version that should be used with Xcode for that. Try reading the Readme.
#2
06/23/2006 (11:46 am)
Thanks! It is in the readme:

2.2) Script Editing in Xcode
The Xcode project file now contains references to the script files.
This make searching more complete, and provides a decent script editor.

2.2.1) Installing .cs Language Definitions in Xcode
----------------------------------------
- open the "torque/pb/script editing" folder.
- locate the Torque.pbfilespec and Torque.pblangspec files therein.
- locate the directory /Library/Application Support/Xcode/Specifications/
- create the Specifications directory if it does not exist.
- install the .pbfilespec and .pblangspec files in Specifications/ .
- quit and restart Xcode.
#3
06/23/2006 (12:22 pm)
I found a codeless language module for BBEdit here: http://www.dannyngan.com/tools/download/bbedit_torquescript.zip
#4
06/23/2006 (12:32 pm)
Thanks Rob. Tried that in TextWrangler and it works in there too.
#5
06/23/2006 (1:35 pm)
Quote:This make searching more complete, and provides a decent script editor.

I disagree with that. XCode is not decent for editing anything, even plain text ;-)

T.
#6
06/23/2006 (2:59 pm)
Tom, can you elaborate on that? I'm new at all this... are there reasons to avoid XCode?

-Mike
#7
06/23/2006 (3:33 pm)
I don't know what Tom is talking about. Xcode HAD a very strange bug that would make it hang while edditing new files. I guess it's over in v2.3.

But I don't use it for script files. It's too heavy to load. I use Smultron that's free and does the job.

Comparing Xcode with VStudio 2005 I beleive both have their highs and lows. There are things in Xcode I don't have a clue of what they do. Versioning could be easily implemented. So many options in so different places.
But I guess that's a problem with ALL IDEs.
#8
06/23/2006 (3:37 pm)
There aren't any technical reasons to avoid XCode. It's just got one of the worst editors (and in fact, worst IDE) I've ever had the misfortune to use ;-)

TextMate is a decent editor. I just use that and tell it TorqueScript is C++. If your TextMate project is in the same dir as the XCode project, you can also build from within TextMate so you hardly ever have to touch XCode.

T.
#9
06/23/2006 (4:11 pm)
I agree with Tom: TextMate is an awesome editor. I have TS syntax highlighting/coloring working with it if anyone needs it.
#10
06/23/2006 (4:53 pm)
Hey Rubes,

Was it you that sent me the syntax file for it ? If so, thanks and sorry I never got back to you, I completely forgot about it :)

Tom.
#11
06/23/2006 (7:53 pm)
Yeah that was me...no problem at all. Glad to hear you're using TextMate.
#12
07/07/2006 (3:50 pm)
Quote: Tom Bampton:
There aren't any technical reasons to avoid XCode. It's just got one of the worst editors (and in fact, worst IDE) I've ever had the misfortune to use ;-)

Damn, Tom... tell us how you really feel, mate... heh.

I don't think Xcode is all that bad. I may have a long wishlist of possible improvements, but I think it's really quite good, for the price: $0 USD ( that's 0 GBP, for Tom ). And Apple is generally pretty receptive to product feedback. Having watched the evolution of their IDE for the last 7 years, they seem to be trying to woo CodeWarrior and VisualStudio users. So if you've got issues, I strongly suggest contacting Apple about 'em.

/Paul
#13
07/12/2006 (6:35 am)
I'm loving the Torque Script code completion in XCode! At first it didn't work until I realized that XCode wasn't recognizing ".cs" files as Torque Script files by default. For each .cs file, you have to be sure to place your cursor in the body of the file, then select Format->Syntax Coloring->Torque Engine Script. Then with a simple Option + Esc, functions/variables are at hand!
#14
07/18/2006 (1:49 pm)
I haven't made the full version of it yet, but TorqueScript is currently partially in and definitely will be in Araelium Edit. http://www.araelium.com. I just need to migrate the keywords etc.
#15
03/24/2011 (2:05 pm)
Is there a way to get the language specs working with XCode4?

I would be very thankful.
#16
04/08/2011 (3:35 pm)
I'm with Sebastian -- it'd be great to get Torque Script syntax highlighting in Xcode 4.
#17
04/08/2011 (5:26 pm)
Since we're reviving a dead thread, let me take the opportunity to make a shameless plug for my BBEdit language module resource. It's probably the hairiest regular expression I've ever written - and I write Perl for a living! :-)
#18
04/27/2012 (8:46 pm)
if anyone will get 'highlighting text' in XCode 4, I will appreciate the effort. Thanks!!!