Enable Function List in Notepad++ for AHK Scripts (with classes now)

Scripting and setups with Notepad++ and AutoHotkey.
User avatar
rediffusion
Posts: 58
Joined: 15 Mar 2019, 05:16

Re: Enable Function List in Notepad++ for AHK Scripts (with classes now)

30 Nov 2019, 08:36

@ahkDustVorteX


Hi! :geek:
1. I read your first post, and I did it all in steps.
This file "functionList.xml" a have in 2 locations:

Code: Select all

C:\Users\USER\AppData\Roaming\Notepad++\
and here:

Code: Select all

C:\Program Files\Notepad++\
I've made some changes here "AppData".

2.
I don't get it very well. Is this something like "tillagoto" used in SciTE4AutoHotkey?
Show me a screencast or screenshot of how it works? I understand correctly if I have strings:

Code: Select all

FirstLabel:
aa()
{}
…somewhere downstairs, I can type two letters - fi... then I will see "tooltip"!?
Am I right to correct me if I'm not?
Last edited by rediffusion on 09 Dec 2019, 12:20, edited 1 time in total.
toralf
Posts: 868
Joined: 27 Apr 2014, 21:08
Location: Germany

Re: Enable Function List in Notepad++ for AHK Scripts (with classes now)

30 Nov 2019, 09:20

AFAIK this will only populate a window called function list (there should be an icon in the toolbar of npp for it) . The window lists all functions in a file.
ciao
toralf
User avatar
rediffusion
Posts: 58
Joined: 15 Mar 2019, 05:16

Re: Enable Function List in Notepad++ for AHK Scripts (with classes now)

09 Dec 2019, 11:51

@toralf

There's an interesting topic here...
Nightwolf85
Posts: 302
Joined: 05 Feb 2017, 00:03

Re: Enable Function List in Notepad++ for AHK Scripts (with classes now)

23 Nov 2020, 09:46

If anybody still checks this thread, Notepad++ has changed the way function list customization works ( I think with v7.9.1 )

Each different language now needs to be in it's own file. I've attached the one I'm using, however I feel it is possibly outdated and may not be the best anymore.

You also need to add a line or two to the overrideMap.xml file.

These are located here:
%APPDATA%\Notepad++\functionList
or
C:\Program Files\Notepad++\functionList

In the overrideMap you have to add the following lines, I added mine to the location at the bottom specified for User Defined Languages.

Code: Select all

<association id="ahk.xml" ext=".ahk" />
<association id="ahk.xml" userDefinedLangName="AutoHotkey" />
Just make sure that the name you write in here matches exactly what you have your custom language named.
Attachments
ahk.xml
(1.95 KiB) Downloaded 592 times
Last edited by Nightwolf85 on 04 Aug 2022, 11:35, edited 1 time in total.

Return to “Notepad++”

Who is online

Users browsing this forum: No registered users and 8 guests