Setup Notepad++ for AutoHotkey
tested up to Notepad++ v7.8.3 (64-bit)
Syntax-Highlighting
- Download
userDefineLang_AHK.xml
(as raw) - Save it to the right location:
- 32-Bit
(C:\Program Files (x86)\Notepad++\)
- 64-Bit
(C:\Program Files\Notepad++\)
- 32-Bit
- Start Notepad++ and click on Menu
Language -> User Defined Language -> Define your language...
Import
your userDefineLang_AHK.xmlRestart
Notepad++
Auto-Completion
- Download
AutoHotkey.xml
(as raw) - 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)
Plugins
- Start Notepad++ and click on Menu
Plugins -> Plugins Admin...
- Check the box for the plugins you want to install
- Click
Install
Alternative:
- Download PlugIns
- Save it to the right location:
- 32-Bit
(C:\Program Files (x86)\Notepad++\plugins)
- 64-Bit
(C:\Program Files\Notepad++\plugins\)
- 32-Bit
Notepad++ loads plugins at startup. To load a new plugin, you can either close and restart Notepad++,
or use the Settings -> Import -> Import plugin(s)...
command.
Useful Plug-In's
- AutoSave allows to automatically save the currently open files based on a timer schedule.
- RunMe allows to execute the currently open file, based on its shell association.
- TextFX brings a number of useful features.
Set Notepad++ as default Editor for AutoHotkey Scripts
(Right Click -> Edit Script
)
With a *.reg File
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\AutoHotkeyScript\Shell\Edit\Command]
@="C:\\Program Files (x86)\\Notepad++\\notepad++.exe %1"
With AutoHotkey (*.ahk)
RegWrite REG_SZ, HKCR, AutoHotkeyScript\Shell\Edit\Command,, C:\Program Files (x86)\Notepad++\notepad++.exe `%1
Downloads
- AutoHotkey (Current Version)
- Notepad++ (Current Version)