( AHK forum - Tested with Notepad++ v8.4.8 64-bit )
- Download
userDefineLang_AHK.xml
(right-click the download link and chooseSave link as
) - Open your download folder
- Start Notepad++ and click on menu
Language -> User Defined Language -> Open User Defined Language folder...
- Move
userDefineLang_AHK.xml
from your download folder to this folder - Restart Notepad++
- Download
AutoHotkey.xml
(right-click the download link and chooseSave link as
) - Save it to the right location:
- 32-Bit:
C:\Program Files (x86)\Notepad++\autoCompletion\
- 64-Bit:
C:\Program Files\Notepad++\autoCompletion\
- 32-Bit:
- Start Notepad++ and click on menu
Settings -> Preferences
- Click on
Auto-Completion
and activateEnable auto-completion on each input
- (Recommendation: From 2th character, Function completion & Function parameters hint on input)
These plugins may be useful when using Notepad++ to edit AutoHotkey scripts:
- AutoSave - automatically save the currently open files based on a timer schedule.
- RunMe - execute the currently open file, based on its shell association.
You can install Notepad++ plugins by using the Notepad++ plugin manager:
- Start Notepad++ and click on menu
Plugins -> Plugins Admin...
- Check the box for the plugins you want to install
- Click
Install
Or by using Notepad++ import:
- Download the plugin's dll file
- Start Notepad++ as administrator and click on menu
Settings -> Import -> Import plugin(s)...
- Navigate to the downloaded dll file and click the
Open
button
AutoHotkey launches an editor to edit a script when menu option Edit Script
or Edit This Script
is selected. This menu option is listed in Windows Explorer's right-click menu and in several AutoHotkey menus.
To set up AutoHotkey to use Notepad++ as script editor:
- Run
AutoHotkey
(which launches AutoHotkey Dash) and clickEditor settings
(Or selectEdit Script
orEdit This Script
in one of the menus if an editor has not been set yet) - A dialog will appear where you can set the editor of your choice. In the Command line field, enter the following text:
Notepad++.exe "%L"
- Click
OK
To set up AutoHotkey to use Notepad++ as script editor, do one of the following:
- Create and run a .ahk file with the following contents (run as administrator):
RegWrite REG_SZ, HKCR, AutoHotkeyScript\Shell\Edit\Command,, Notepad++.exe "`%L"
- Or execute at the Command Prompt (run as administrator):
REG ADD HKCR\AutoHotkeyScript\Shell\Edit\Command /ve /t REG_SZ /d "Notepad++.exe \"%L\"" /f
- Hotstrings - (by Helgef) expand parameters for AHK's functions, commands and directives.
- FunctionList - enable function list in Notepad++ for AHK scripts.
- MsgBox Creator - (by boiler) integrated into the editor like it is in SciTE4AutoHotkey.
- Run - (by boiler) run a script directly from Notepad++ whether or not it has ever been saved to a file.
- Notepad++ (software)
- AutoHotkey (software)
- userDefineLang_AHK.xml (xml file for Syntax Highlighting, Default theme)
- userDefineLang_AHK.xml (xml file for Syntax Highlighting, Lazy theme)
- AutoHotkey.xml (xml file for Auto-Complete function)