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/

This add-on is great! Thank You Nerderer for sharing it with us.

W00T

@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.

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?

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.

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.

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!

@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.

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.

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.

views:2380 update:2011/9/19 13:40:57
corona forums © 2003-2011