Corona for Coda - Autocomplete and syntax highlight

I wanted support for this myself, as a Coda user, and I saw that someone else also requested it. So here it is.

This gives you basic Lua syntax highlighting and support for most Corona functions. What it doesn’t do is give you autocomplete on your variables, since Coda doesn’t support that.

The module is based on the Lua.mode from SubEthaEdit, and thanks to J. A. Whye for letting me steal his list with functions.

Download and instructions are found here:

http://www.nerderer.com/CoronaForCoda/ [import]uid: 13180 topic_id: 8082 reply_id: 308082[/import]

This add-on is great! Thank You Nerderer for sharing it with us. [import]uid: 22837 topic_id: 8082 reply_id: 28832[/import]

W00T [import]uid: 24 topic_id: 8082 reply_id: 28868[/import]

@carlos: I don’t know if that “W00T” meant “This is so cool!” or if it meant “What the heck is Coda?”. If it’s the first, then yes, it’s quite cool. If it’s the latter then Coda is a very likeable text editor for Mac. [import]uid: 13180 topic_id: 8082 reply_id: 28915[/import]

This is sort of cool, but autocomplete doesn’t seem to work for things with dots in them, for instance display -> shows the list of display options I can choose from. display.new -> my list of autocomplete options is now empty.

Not sure if this can be fixed?
[import]uid: 33866 topic_id: 8082 reply_id: 28951[/import]

It should work with both display and display.new.

I was using 1.62 and just tried with 1.7. That’s where it stops working. I’ll take a look at it. [import]uid: 13180 topic_id: 8082 reply_id: 28992[/import]

Seems like Coda 1.7 behaves differently than 1.62 when it comes to autocomplete. In 1.7 it restarts the autocomplete after the dot. What I could do is add some new autocomple lines like:

newImage()
newImageRect()

and so on, which should popup as soon as you type display.new…

Personally I’ll go back to 1.62, since I think the 1.7 version is just stupid. Overall the autocomplete for Coda is quite bad. [import]uid: 13180 topic_id: 8082 reply_id: 29020[/import]

This is very cool, I’m also on 1.7, and notice that it’s not compatible with the display.new functions, but many others are available such as physics.addBody etc.

Good stuff ty! [import]uid: 4596 topic_id: 8082 reply_id: 41749[/import]

@Nerderer Have you updated the auto complete list with the latest updates of the API’s? Noticed in the CPM post that the list have been updated. [import]uid: 13560 topic_id: 8082 reply_id: 41754[/import]

No, it hasn’t been updated, but it should be easy by using that list. I’ll try to update it within a few days. [import]uid: 13180 topic_id: 8082 reply_id: 42410[/import]

I’ve just updated the addon with the new list. Just download it again, and follow the instructions on the page. Be sure to delete the old CoronaLua.mode first. [import]uid: 13180 topic_id: 8082 reply_id: 42832[/import]

There’s a lot of new API’s ,have you had a chance to update the list?
Cheers/
David [import]uid: 34126 topic_id: 8082 reply_id: 62239[/import]

I’ve just updated it to a newer version. It’s based on this list though, which was last updated on september 30, so some functions might still be missing:

http://www.pixelenvision.com/1690/autocomplete-wordlist-for-corona-project-manager-cpm/

Just redownload the file and replace the old mode:

http://www.nerderer.com/CoronaForCoda/ [import]uid: 13180 topic_id: 8082 reply_id: 63433[/import]