Add Lua language support to Xcode 4

Hey all,

I just wanted to let everyone know that I have added another tutorial to my blog. This tutorial covers adding Lua language support to Xcode 4. I found that a lot of people (including myself) are frustrated with Xcode’s lack of extensibility.

http://velluminteractive.com/add-lua-support-to-xcode-4/

Regards,
Brian Reinhart [import]uid: 158289 topic_id: 29395 reply_id: 329395[/import]

Awesome, thank you for this! I had to ditch Xcode4 in favor of TextWrangler because of lack of Lua code coloring, but I might go back now for some of the little features I really liked, i.e. Xcode’s vastly superior (in my opinion) term/text multi-search and replace.

Brent [import]uid: 9747 topic_id: 29395 reply_id: 118121[/import]

No problem, I am glad I could help! I definitely like Xcode, I just wish that it was a bit more customizable. [import]uid: 158289 topic_id: 29395 reply_id: 118125[/import]

Hey Brian. Great thanks! Im still using xcode 3.6 for corona programming because of missing lua syntax coloring and because they removed user scripting from xcode 4.
Now I think I will switch to xcode 4. I only wish there were some way to have corona api syntax coloring aswell.
[import]uid: 13632 topic_id: 29395 reply_id: 118137[/import]

I very much look forward to checking this out :slight_smile: [import]uid: 52491 topic_id: 29395 reply_id: 118174[/import]

@ojnab - You could modify the xclangspec file and add the corona specfic API syntax. This may be a good community project. The actual file is pretty easy to understand, the syntax reminded me of JSON.

I was feeling pretty lazy and just converted an old Xcode 3 Lua syntax file to Xcode 4 format. If I find some time, I may add some corona keywords and grammar to the file.

Regards,
Brian [import]uid: 158289 topic_id: 29395 reply_id: 118203[/import]

Actually there is a xclangspec file with corona syntax here:
http://developer.coronalabs.com/code/how-use-xcode-corona

It’s not up to date but it’s a good starting point.
I will see if I can find the time to update it. Will post here if I do. [import]uid: 13632 topic_id: 29395 reply_id: 118205[/import]

Awesome! I should be able to find some time and verify that the xclangspec works. If it does, I will add it to the github repo.

Thanks for the pointer!

Regards,
Brian [import]uid: 158289 topic_id: 29395 reply_id: 118213[/import]

Just tried it and I can confirm it is working! Thanks a lot Brian [import]uid: 13632 topic_id: 29395 reply_id: 118252[/import]

@Brian

Just wanted to let you know that I used your script in this project:

http://forums.coronalabs.com/topic/47224-xcode-corona-editor/

Lots of useful stuff there if you are still using Xcode as IDE for Corona

Thanks

@Brian

Just wanted to let you know that I used your script in this project:

http://forums.coronalabs.com/topic/47224-xcode-corona-editor/

Lots of useful stuff there if you are still using Xcode as IDE for Corona

Thanks