We all love using Lua to write custom scripts for our game objects, and we also love using
Notepad++ to edit those scripts. It basically has everything you'd want in a text editor, plus some.
After hunting on the internet for a bit, we realized that there wasn't a good Lua language file for Notepad++ (at least, we couldn't find one). So we decided to take a little bit of time and create a Lua language file which supports the auto complete feature of Notepad++.
Using this you'll get awesome dropdown boxes as you type built in Lua functions. It'll also show you what parameters you can pass into the functions, as well as the documentation for them.
DOWNLOAD IT HERE!
To use it, follow these steps:
1. Download the LuaLangFile.zip from the link above
2. Extract the lua.xml file into the Notepad++ installation directory, under plugins/APIs. (For me this is in C:\Program Files (x86)\Notepad++\plugins\APIs)
3. Open up Notepad++, and go into Settings->Preferences. Under the Backup/Auto-Completion tab, make sure to check "Enable auto-completion on each input", as well as "Function parameters hint on input"
There are a few issues with it at the moment. Firstly, every function is listed as returning void. I couldn't really come up with a good solution to functions which could return different types of data, so I left them all as is. Second, the descriptions for functions with a "." in them (like, math.abs) don't show up. I'm not exactly sure why this is.
If anyone else wants to add to the language file, feel free to post new revisions here or send us an email at info@retroaffect.com as we'll post updates here in the blog.
Happy Scripting!
Comments
Aj The Mauy Thai Gear Girl
September 21st, 2011 3:16:53 pm
Well, that was very nice of you! Thanks!
Anonymous
October 23rd, 2011 1:09:08 am
a great file!
p.s.
put inside not out of it, then the rules with "." will work. :)
Anonymous
October 23rd, 2011 4:58:26 am
put Environment inside AutoComplete -_________-||
Maria Stewart
October 28th, 2011 11:33:14 pm
Yes! Thank God i found this..Very useful, i just downloaded notepad++ . I need this at work! Again thanks!!!
Quin
May 17th, 2012 3:35:29 am
Download URL broken??? Anyone else?
TESTING