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

General discussion about LÖVE, Lua, game development, puns, and unicorns.
GreatHeroRift
Prole
Posts: 2
Joined: Sat May 08, 2010 9:54 pm

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

Post 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.
Attachments
lua.xml
lua.xml for LÖVE 0.6.2
(28.7 KiB) Downloaded 2367 times
Last edited by GreatHeroRift on Tue Jun 01, 2010 3:55 pm, edited 1 time in total.
oleyb
Prole
Posts: 1
Joined: Wed May 12, 2010 11:12 pm

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

Post by oleyb »

This is great, thanks! This is super helpful for someone just starting out with LÖVE.
User avatar
Lap
Party member
Posts: 256
Joined: Fri Apr 30, 2010 3:46 pm

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

Post by Lap »

Thanks for making this.

It also looks like the board ate the attachment. Anyone have a copy?
GreatHeroRift
Prole
Posts: 2
Joined: Sat May 08, 2010 9:54 pm

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

Post by GreatHeroRift »

I went ahead and updated the top post with the re-uploaded file. :]
User avatar
Angrycrow
Prole
Posts: 29
Joined: Fri Mar 06, 2009 8:16 pm
Location: Los Angeles

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

Post by Angrycrow »

This is the best! I was up all night looking for this! Thank you so much!
I like nonsense, it wakes up the brain cells. Fantasy is a necessary ingredient in living, It's a way of looking at life through the wrong end of a telescope. Which is what I do, And that enables you to laugh at life's realities.
- Dr. Seuss
dbest
Prole
Posts: 1
Joined: Mon Jun 21, 2010 5:58 am

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

Post 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.
hide
Prole
Posts: 7
Joined: Thu Jan 14, 2010 11:17 pm

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

Post 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++ ?
by Jasoco : Löve is cross-platform after all.
User avatar
ninwa
Party member
Posts: 118
Joined: Tue Oct 12, 2010 1:21 am
Location: Metro Detroit
Contact:

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

Post 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
User avatar
thelinx
The Strongest
Posts: 857
Joined: Fri Sep 26, 2008 3:56 pm
Location: Sweden

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

Post 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.
Attachments
lua.xml
(32.46 KiB) Downloaded 2744 times
User avatar
tentus
Inner party member
Posts: 1060
Joined: Sun Oct 31, 2010 7:56 pm
Location: Appalachia
Contact:

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

Post 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!
Kurosuke needs beta testers
Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests