AutoHotkey syntax highlighting in Notepad++

Stevoisiak picture Stevoisiak · Aug 2, 2017 · Viewed 19.8k times · Source

I would like to display syntax highlighting for AutoHotkey .ahk script files in Notepad++.

I don't want to manually select a language every time I open an AHK script. I want language-specific syntax to be applied automatically when the file is opened.

Answer

Stevoisiak picture Stevoisiak · Aug 25, 2017

Thanks to jNizM for their helpful guide on the AHK forums.

Setup Notepad++ for AutoHotkey

Syntax-Highlighting

  1. Download userDefineLang_AHK.xml as raw (Right-click and choosing save as target...)
  2. Start Notepad++ and click on Menu Language -> Define your language
  3. Click Import... and select the file you downloaded in step 1
  4. Restart Notepad++

AutoHotkey highlighting default theme