Which editors support AutoHotkey v2?

Discuss features, issues, about Editors for AHK
lexikos
Posts: 9592
Joined: 30 Sep 2013, 04:07
Contact:

Which editors support AutoHotkey v2?

15 Oct 2022, 19:16

I am looking to collate a list of editors which support AutoHotkey v2, or files/guides for configuring editors to support it.

Syntax highlighting:
  • Are the basic elements highlighted correctly (comments, single and double quoted strings, numbers, control flow statements, hotkeys)?
  • Are built-in functions recognized (or are keywords configurable)?
  • How accurate or detailed is the highlighting?
Does it have:
  • The ability to run the script from directly within the editor?
  • Auto-complete? Built-in or user-defined words?
  • Auto-indent?
  • Call tips (showing the parameters of a function while the user is writing a function call)? Built-in functions only, or user-defined?
  • Interactive debugging - line stepping, breakpoints, inspecting variables?
  • Anything else (in short)?
If an editor also supports v1, that may be worth noting as well.

For editors that only support v1, I would like to know the status of any attempts to add v2 support.
neogna2
Posts: 591
Joined: 15 Sep 2016, 15:44

Re: Which editors support AutoHotkey v2?

16 Oct 2022, 05:48

Some quick notes on Notepad2 (Scintilla based) editors, forked from Notepad2 (end of life 2012) and Notepad2-mod (end of life 2017, v1 lexer by PhiLho)

Notepad3: No v2 support last year, unsure of current status. Some AutoHotkey talk in issue and there's LexAHKL2.cxx (based on v1 RaptorX lexer) but then again no v2 keywords here.

Notepad2e: No v2 lexer, v1 lexer by PhiLho

Notepad2 fork by zufuliu: v2 lexer LexAutoHotkey.cxx for Lexilla (no attribution comment so by zufuliu I guess).
Yes:
- basic elements highlighted correctly
- built-in functions recognized
- highlight accuracy good (so far in my limited use of it)
- run script from editor (Ctrl+L)
- auto-complete v2 keywords built in
- auto-indent
No:
- call tips
- interactive debugging
User avatar
thqby
Posts: 408
Joined: 16 Apr 2021, 11:18
Contact:

Re: Which editors support AutoHotkey v2?

22 Oct 2022, 04:52

https://github.com/thqby/vscode-autohotkey2-lsp#use-in-other-editors
ahk2 in vim, neovim and sublime text4
I can't write vim scripts, and syntax highlighting is not implemented.
Simple sublime syntax highlighting is provided, and the rest is provided by semantic highlighting.
ahk7
Posts: 575
Joined: 06 Nov 2013, 16:35

Re: Which editors support AutoHotkey v2?

24 Oct 2022, 16:51

Just in case some one wants to run with the idea again, from a few years ago https://github.com/ahkscript/AutoHotkey-Editors e.g. if there is a list of functions, variables etc making syntax highlighting files for a variety of text editors is relatively easy to maintain.
kashmirLZ
Posts: 48
Joined: 06 Oct 2022, 23:27

Re: Which editors support AutoHotkey v2?

09 Nov 2022, 09:50

V2 Adoption will increase once we get a dedicated IDE that supports it.
Offer the tools. Provide the documentation.
Then the people will come. The transition will be smooth and pleasant.
User avatar
jNizM
Posts: 3183
Joined: 30 Sep 2013, 01:33
Contact:

Re: Which editors support AutoHotkey v2?

16 Nov 2022, 04:54

[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile
AHK_user
Posts: 515
Joined: 04 Dec 2015, 14:52
Location: Belgium

Re: Which editors support AutoHotkey v2?

16 Nov 2022, 06:10

Do not forget Visual Studio Code, in combination with the Autohotkey v2 language support and Autohotkey Plus Plus.
User avatar
xMaxrayx
Posts: 165
Joined: 06 Dec 2022, 02:56
Contact:

Re: Which editors support AutoHotkey v2?

14 Feb 2024, 11:15

yeah Agree Vscode with AHK is so sweet you can see all files like images and get their relative path while coding.
-----------------------ヾ(•ω•`)o------------------------------
https://github.com/xmaxrayx/

Return to “Editors”

Who is online

Users browsing this forum: No registered users and 52 guests