Page 1 of 1

Autocomplete for Notepad++

PostPosted: 08 Aug 2015, 21:41
by Strangelove
Hello,

I've created an autocomplete plugin for Notepad++. It now recognizes all Events, States and Actions supported by the KaMRemake.

Here an example:
Image

Image


How to install Hint/Autocomplete for pascal script?
First, download the newest version of Notepad++. Install the Program to a location of your choice.
Now download the Hint/Autocomplete-File (see attachments) and save it somewhere you remember. Extract the File from pascal_versionxy.rar into the "\Notepad++\plugins\APIs"-Directory. You may have to have admin privileges to do so.
Startup Notepad++ and set your Language to "Pascal".


Please let me know if I forgot something or made any copy-paste-errors. Thanks!


Best regards,
Strangelove

EDIT-Log:
  Code:
EDIT 09.08.2015: Added stuff. Fixed a few errors.
EDIT 11.08.2015: Added version 0.9d. Action "AIGroupsFormationSet" was missing. Minor Improvements.
EDIT 30.08.2015: Added newest version 0.9e. Removed older versions.
EDIT 09.09.2015: Added a new version. Parameter was missing from procedure OnUnitAfterDied. Added some keywords.
EDIT 24.09.2015: Added a more detailed description on how to install.

Re: Autocomplete for Notepad++

PostPosted: 09 Aug 2015, 07:05
by Krom
Awesome! :-)

Would you like to include that plugin into KaM Remake github repo and link to it from KaM Remake github wiki?

Re: Autocomplete for Notepad++

PostPosted: 09 Aug 2015, 07:26
by sado1
That's really nice, I can't express how much I needed something like that back in the days when I was scripting a lot.

Re: Autocomplete for Notepad++

PostPosted: 09 Aug 2015, 08:01
by Strangelove
Thanks you very much, guys!

Krom wrote:Awesome! :-)

Would you like to include that plugin into KaM Remake github repo and link to it from KaM Remake github wiki?

It would be an honor, but you should know that there are still some minor issues that needs fixing. For example, some of the descriptions are too long and so, they aren't displayed properly by notepad++. I will have to reduce the characters of said descriptions to make them practial.


sado1 wrote:That's really nice, I can't express how much I needed something like that back in the days when I was scripting a lot.

That's exactly what I was thinking. Yesterday I wanted to get back into scripting and discovered that I had forgotten pretty much all parameter of Events, States, and Functions and got frustrated pretty soon. Had I known that its possible to create a custom plugin for notepad++ when I started scripting, I'd have saved myself a lot of hassle...

Re: Autocomplete for Notepad++

PostPosted: 09 Sep 2015, 16:22
by Strangelove
Added a new version. Parameter was missing from procedure OnUnitAfterDied. Added some keywords.

Re: Autocomplete for Notepad++

PostPosted: 10 Sep 2015, 23:15
by Ben
This is very nice. Like really I love stuff like this when I am programming; and besides, programmers are the laziest people in the world :D I might get into scripting if we get more stuff like this ;p

Re: Autocomplete for Notepad++

PostPosted: 11 Sep 2015, 08:30
by Strangelove
To encourage more ppl to try scripting is the whole purpose behind that little file. :P (And my bad memory haha)

Re: Autocomplete for Notepad++

PostPosted: 10 Oct 2017, 12:07
by Rey
Being clickbaited by your signature @Strangelove, I've found this awesome plugin!

I think we need to add it to KMR wiki and make it more popular.

Have you made it manually or use some kind of script/tool/soft whatever?
Its good to automate this process, f.e. we have small tool (ScriptParser) to generate script wiki files for github from source code (source code has to be formatted in special manner).

Re: Autocomplete for Notepad++

PostPosted: 10 Oct 2017, 14:34
by Black
Wow this is fantastic! Really useful, the shame is that i've found out this only today :P

Re: Autocomplete for Notepad++

PostPosted: 10 Oct 2017, 17:00
by Rey
Black wrote:Wow this is fantastic! Really useful, the shame is that i've found out this only today :P

That is why we need to make it more popular, not many ppl knows about it

Re: Autocomplete for Notepad++

PostPosted: 10 Oct 2017, 17:24
by Strangelove
Oh wow, I didn't know you guys haven't seen that before haha.
Well, I am glad you like it. Like the original post suggests - I've made this a while ago. :P

I'd be honored if it was added to the Wiki, and I hope it will help people to get into scripting more easily. (:

To your original question: I didn't use any software or anything. I just copied the texts from the Github Wiki and formatted it correctly. I think I just fallowed a tutorial. :'D

Re: Autocomplete for Notepad++

PostPosted: 23 Mar 2019, 11:57
by Rey
For Notepad++ version 7.6.3 you need to put pascal.xml into Notepad++/autoCompletion folder instead of Notepad++/plugins/APIs