Page 1 of 3

Notepad++ Auto-Complete Config for LÖVE 0.6.2

Posted: Tue May 11, 2010 2:42 pm
by GreatHeroRift
I just recently discovered LÖVE, and I love it. But there was one thing that was bugging me: wouldn't it be great if Auto-Complete in Notepad++ worked with LÖVE's API?

Well, now it can!

Instructions:
- Download the lua.xml and place it in your Notepad++/plugins/APIs/ directory.
- In Notepad++, go to Settings > Preferences in the menu.
- Select the Backup/Auto-Completion tab.
- Make sure "Enable auto-completion on each input" is checked.
- Set it to "Function completion."
- And check "Function parameters hint on input."

And...bam! Auto-Completion for LÖVE API functions in Notepad++. Of course, it's no Visual Studio Intellisense, but it's a lot nicer than having to look up and/or remember all the function names/parameters/return types.

NOTES:
- This file was made for LÖVE 0.6.2, and will need to be updated if/when any API changes are made.
- It only works for the main love.* API functions (like love.graphics.checkMode()), not the prototype functions on objects (like source:isLooping(), etc). If someone can think of a good way to do those, let me know and I'll gladly add them in.
- This lua.xml only includes the LÖVE API functions, not the Lua API functions. If someone knows of a lua.xml out there that has all the Lua API functions with parameters, I'll merge them in with this one.

Anyhow, enjoy! Let me know if you have any tips/problems/suggestions/etc/etc.

EDIT: Updating the file with a fix for functions that have no return value. They should now properly generate function parameter hints, like all the other functions.

Re: Notepad++ Auto-Complete Config for LÖVE 0.6.2

Posted: Wed May 12, 2010 11:14 pm
by oleyb
This is great, thanks! This is super helpful for someone just starting out with LÖVE.

Re: Notepad++ Auto-Complete Config for LÖVE 0.6.2

Posted: Sun May 30, 2010 4:09 am
by Lap
Thanks for making this.

It also looks like the board ate the attachment. Anyone have a copy?

Re: Notepad++ Auto-Complete Config for LÖVE 0.6.2

Posted: Tue Jun 01, 2010 3:56 pm
by GreatHeroRift
I went ahead and updated the top post with the re-uploaded file. :]

Re: Notepad++ Auto-Complete Config for LÖVE 0.6.2

Posted: Fri Jun 11, 2010 7:50 pm
by Angrycrow
This is the best! I was up all night looking for this! Thank you so much!

Re: Notepad++ Auto-Complete Config for LÖVE 0.6.2

Posted: Mon Jun 21, 2010 6:11 am
by dbest
Just joined and I like this already. :)
I have been using NPP for my normal routine work and this plugin makes it lovely.

Re: Notepad++ Auto-Complete Config for LÖVE 0.6.2

Posted: Sat Oct 30, 2010 9:16 am
by hide
Thank you this is awesome !
I've added a Notepad++ page on the wiki with how to run love code and a link to here.

Now is there a way to highlight these LOVE functions in notepad++ ?

Re: Notepad++ Auto-Complete Config for LÖVE 0.6.2

Posted: Thu Nov 04, 2010 11:21 am
by ninwa
Thank you guys for putting this together, I actually just yesterday set this up and it's been a huge help. Now all I have to do in Notepad++ is press shift + ctrl + b and wazam, instant Love action! :)

(You VC users will recognize the keybind. :))

Ninwa

Re: Notepad++ Auto-Complete Config for LÖVE 0.6.2

Posted: Thu Jul 21, 2011 10:55 pm
by thelinx
Here's a lua.xml that has been updated for LÖVE 0.7.2. I don't personally use Notepad++, so I'm not sure if it works or not.

Re: Notepad++ Auto-Complete Config for LÖVE 0.6.2

Posted: Thu Jul 21, 2011 11:12 pm
by tentus
thelinx wrote:Here's a lua.xml that has been updated for LÖVE 0.7.2. I don't personally use Notepad++, so I'm not sure if it works or not.
It does. Thanks!