Page 1 of 1

[OSX | Coda Addon] - LUA-Highlighting for Panic's Coda

Posted: Tue Jun 30, 2009 6:15 pm
by Gruni
Hey hey, guys. Since I started learning LUA today, I looked for a good editor for OSX. No luck at all. So I decided to make an LUA-Highlighting-Addon for my beloved Coda (http://www.panic.com). It's not perfect... It supports the most basic LUA-Functions and some constants and parts of the Löve-Environment. Right now, there is no support for the "hints". That may come later... but for now, it's really cool to work with. I löve it. :) Have fun with it.

Screenshot:
Image

Download:
http://www.acrowdapart.net/files/LUA.mode.zip

Instructions:
- Download
- Unzip
- Put the folder called "LUA.mode" into /Users/<your username>/Library/Application Support/Coda/Modes/
- (re)start Coda (if it's already running)
- Have fun with Coda supporting LUA-Syntax. :)

It's based on Perl.mode since that was the thing that looked most logical to me.

Feedback and "Feature-Support" is welcome.

ToDo:[b/]
- Add Löve2D-Specific functions (As you can see on the screenshot, setFont is recognized as a "known" function (purple), but newImage isn't (blue). I will fix this within the next couple of days....
- Add Hint- and Documentation-Support

Gruni

Re: [OSX | Coda Addon] - LUA-Highlighting for Panic's Coda

Posted: Mon Nov 02, 2009 3:25 am
by Fizzadar
Old topic, but posting because this is so incredibly useful :)

One thing that bugs me is the lack of --[[]] comment support, but apart from that, perfection! Been looking for a coda Lua mode for _AGES_

Re: [OSX | Coda Addon] - LUA-Highlighting for Panic's Coda

Posted: Mon Nov 02, 2009 4:59 am
by bmelts
There's also this, which is for Xcode 3. It's got no LÖVE-specific highlighting, though.

Re: [OSX | Coda Addon] - LUA-Highlighting for Panic's Coda

Posted: Sat Nov 07, 2009 12:46 am
by Jasoco
I just use TextWrangler. It color codes all kinds of code types.

Re: [OSX | Coda Addon] - LUA-Highlighting for Panic's Coda

Posted: Tue Dec 29, 2009 4:13 pm
by Gruni
Fizzadar wrote:Old topic, but posting because this is so incredibly useful :)

One thing that bugs me is the lack of --[[]] comment support, but apart from that, perfection! Been looking for a coda Lua mode for _AGES_
Next year (*g*) I'll take a look at that and try to fix this. Any other things not working correctly?

Best Regards,

Gruni