Game Development Community

[solved, download for new XCode] Sintax Highlighting in Xcode

by Joe Alanis · in iTorque 2D · 09/30/2009 (2:36 pm) · 16 replies

Im trying to install the pkg "Install TorqueScript for Xcode" inside "compilers/Xcode_iPhone/script editing" but it won't do anything... is there a step im missing?

I open the .cs files on Xcode and they're not using sintax highlighting...

Any thoughts?

About the author

Director of the Animation and Digital Arts Bachelor @ ITESM Laguna Campus Twitter: @joealanis


#1
09/30/2009 (9:25 pm)
that does not work with the current xcode releases.
you will have to use another editor or run windows through VMWare / parallels
#2
09/30/2009 (9:52 pm)
I still just use Smultron and echo-debugging :)
#3
10/04/2009 (10:27 am)
Smultron will no longer update, any others free software to use?
#4
10/04/2009 (1:03 pm)
You could try TextWrangler from BareBones.

A while back, I posted a language module resource that works with both TextWrangler and its big brother BBEdit.

Edit: I also found an updated resource that's made for Xcode 3. I haven't tried that one though - I prefer BBEdit. :-)
#5
10/04/2009 (10:21 pm)
Thanks Sherman. I will try the TextWrangler.
#6
10/04/2009 (10:37 pm)
The author of Smultron is just saying he's got too little time. The source is still there, and the latest versions work perfectly well for me on Snow Leopard :)
#7
11/20/2009 (1:15 pm)
But.. I like Xcode :(

*whines*
#8
11/20/2009 (2:15 pm)
i have the fix, i will upload shortly :)

It works really nicely on Newest XCode!

Edit, im using snow leopard with all latest xcodes and 10.6.2 updates etc with no problems.

Download


Download zip

INSTALLING

To install : copy the 3 files into the following folder :

~/Library/Application Support/Developer/Shared/XCode/Specifications/

These files allow XCode to highlight torquescript properly, within reason.
It tries to catch variables and stuff as well, and i havent noticed it getting on my nerves so here we are :)

Ps : The folders listed above might not exist! Make them if you need to.

Pss : Next release currently should have this as a package installer that checks XCode versions xcode.
#10
11/20/2009 (3:10 pm)
Whoaa! thanks again, Sven! when I grow up I wanna be like you!

BTW... When you say "will upload shortly" you mean to that link you just gave us? I downloaded it and will install it this afternoon but where do you keep all this updates?

Thanks again Sven!
#11
11/20/2009 (3:15 pm)
... Now i get it, you edited your own post... haha.
#12
11/20/2009 (4:56 pm)
No problem. Enjoy :)
#13
12/14/2009 (4:55 pm)
This is a strange issue that I just came across and here is the solution.

I did some script work this morning and added the highlight code (thanks sven). So I restarted Xcode, removed and re-added to my script to the xcode project. Then I ran the game, and it stalled on the iTGB splash screen and displayed only "performing mainInit()" in my console.

Usually I get this error because I forgot to add my script to the project, but when I removed them again and made sure I added them to the right target and for them to keep their folder structure I had the same issue.

I then checks my build to view the content of the files and sure enough main.cs was missing but everything else was there. I never looked at the xcode warning when working with torque, but I notice that I only had 1 (which is odd). Here is what it said "warning: no rule to process file '$(PROJECT_DIR)/../../../games/THV1.2/main.cs' of type sourcecode.torque for architecture armv6"

I looked in my Targets and notice that in iTGB and iTGB_Script_Optimize it was not there, but when I selected main.cs and looked at what targets it was in it showed that it SHOULD be there.

The fix was to drag main.cs from my Resources folder into my Targets and it now works.

I never seen this before and I figure someone else may get the same issue.



#14
02/06/2010 (7:16 pm)
works in 3.1.4 - thanks Sven!
#15
12/12/2010 (5:00 am)
Running on 3.2.5 !!! awesome!!!
#16
04/27/2012 (8:49 pm)
if anyone will get 'highlighting text' in XCode 4, I will appreciate the effort. Thanks!!!