Notepad++ autocompletion and stuff

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
User avatar
lcm
Prole
Posts: 3
Joined: Fri Jul 18, 2014 7:12 pm

Notepad++ autocompletion and stuff

Post by lcm »

Hi, folks. I've made auto-completion config for Notepad++ that helps writing Lua and LÖVE apps.
It works for me, so maybe you find it useful too.

It covers (almost) all Lua 5.2* and LÖVE 0.9.1 functions, including return values, parameters, their types and short hints from official documentation. Also it contains deprecated functions from LÖVE 0.8+ for migrating users, with note of what functions to use instead.

Class methods are included into AC as well, but they can't be used directly (you should rewrite class name with your instance name every time) and thus they're useful only as shorthand documentation.

Another file (langs.xml) is an updated syntax highlighting config, so Notepad++ will highlight love.-functions as well as common Lua-functions.

And the last file (functionList.xml) is for Function List sidebar.

It's still raw and definitely far from perfect, so let me know if you find something to repair.
Oh, and don't forget to enable Auto-Completion in NPP preferences if you decide to try.

____
* Note that Lua 5.2 is slightly different from 5.1 used in LÖVE. In particular, 5.1 does not offer bit32-functions, and 'table.unpack' still called just 'unpack'.

Few samples:
Image
Attachments
LuaLove2D_NotepadPP.zip
(76.89 KiB) Downloaded 288 times
Last edited by lcm on Tue Jul 22, 2014 3:32 pm, edited 2 times in total.
SkymarshallHeff
Prole
Posts: 10
Joined: Mon Jun 23, 2014 6:32 pm

Re: Notepad++ autocompletion and stuff

Post by SkymarshallHeff »

:D
User avatar
lcm
Prole
Posts: 3
Joined: Fri Jul 18, 2014 7:12 pm

Re: Notepad++ autocompletion and stuff

Post by lcm »

Updated: now the archive also contains a parser for Function List.
As if you care: the code in screenshot is from Order of Twilight by StabYourself.

Image
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 0 guests