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.
Notepad++ Auto-Complete Config for LÖVE 0.6.2
-
- Prole
- Posts: 2
- Joined: Sat May 08, 2010 9:54 pm
Notepad++ Auto-Complete Config for LÖVE 0.6.2
- Attachments
-
- lua.xml
- lua.xml for LÖVE 0.6.2
- (28.7 KiB) Downloaded 2743 times
Last edited by GreatHeroRift on Tue Jun 01, 2010 3:55 pm, edited 1 time in total.
Re: Notepad++ Auto-Complete Config for LÖVE 0.6.2
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
Thanks for making this.
It also looks like the board ate the attachment. Anyone have a copy?
It also looks like the board ate the attachment. Anyone have a copy?
-
- Prole
- Posts: 2
- Joined: Sat May 08, 2010 9:54 pm
Re: Notepad++ Auto-Complete Config for LÖVE 0.6.2
I went ahead and updated the top post with the re-uploaded file. :]
Re: Notepad++ Auto-Complete Config for LÖVE 0.6.2
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
- Dr. Seuss
Re: Notepad++ Auto-Complete Config for LÖVE 0.6.2
Just joined and I like this already.
I have been using NPP for my normal routine work and this plugin makes it lovely.
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
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++ ?
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.
Re: Notepad++ Auto-Complete Config for LÖVE 0.6.2
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
(You VC users will recognize the keybind. )
Ninwa
Re: Notepad++ Auto-Complete Config for LÖVE 0.6.2
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 2840 times
- 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
It does. Thanks!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.
Kurosuke needs beta testers
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 4 guests