syntax highlighting

5 replies [Last post]
busterblue2
User offline. Last seen 2 years 28 weeks ago. Offline
Joined: 1 Jul 2009

programming noobie - having trouble locating exactly where to place Lua.pbfilespec and Lua.xclangspec files. I d/l latest versions of iPhone SDK 3.0 and installed XCode - been working through some XCode tutorials. Now reading through Ansca Getting Started Guide and cannot find correct place (e.g., ~/Library/Application Support/Developer/Shared/Xcode/Specifications/ as indicated in Readme.txt. Pls help. TIA

Replies

drendall
User offline. Last seen 1 year 26 weeks ago. Offline
Joined: 10 Jul 2009

I have just done this. Go to your home directory (the one with Desktop, Document etc in it). There will be a Library directory there, with an Application Support sub directory, but it may not have a Developer directory within that (I did not have one). You will need to create the remaining directory structure (make sure names are correct). Worked for me.

busterblue2
User offline. Last seen 2 years 28 weeks ago. Offline
Joined: 1 Jul 2009

Thanks for the reply. Followed your instructions, but still does not seem to allow for syntax coloring. Maybe I am expecting something when I shouldn't. When I pull up a recent Main.lua file in Xcode3 and type print, the print command is not highlighted. When I select View, Syntax Coloring, there is no option for Lua - the only options are the ones that come with Xcode (e.g., Ada, AppleScript, Assembly (Intel)...Xcode Text Macro Specification, XML).

drendall
User offline. Last seen 1 year 26 weeks ago. Offline
Joined: 10 Jul 2009

I do not have an option for Lua re syntax coloring either. Still works - what is your exact directory path to the Lua.pbfilespec and Lua.xclangspec files - maybe you have different capitalization?

samalolo
User offline. Last seen 1 year 24 weeks ago. Offline
Joined: 20 Jul 2009

Worked fine for me, check capitalization like drendall said:

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

Also be sure to close and restart Xcode

busterblue2
User offline. Last seen 2 years 28 weeks ago. Offline
Joined: 1 Jul 2009

the files (Lua.pbfilespec and Lua.xclangspec) are located in path:
Macintosh HD/Users/Microcenter/Library/Application Support//Developer/Shared/Xcode/Specifications/

The directory Macintosh HD/Users/Microcenter/ has the Desktop, Documents, etc folders.

Should Xcode have been loaded into one of these folders? I think I have Xcode loaded in:
Macintosh HD/Developer/ folder?

TIA for your help...

Viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.