Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AutoHotkey syntax highlighting in Notepad++

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.

like image 438
Stevoisiak Avatar asked Aug 02 '17 16:08

Stevoisiak


People also ask

Can Notepad++ be used for AutoHotkey?

Setup Notepad++ for AutoHotkey Save it to the right location: 32-Bit (C:\Program Files (x86)\Notepad++\) 64-Bit (C:\Program Files\Notepad++\) as User (%AppData%\Notepad++\)

Is there a dark theme for Notepad++?

Material Dark theme gives Notepad++ editor a modern makeover that is loved by developers. It is a good option for those who like dark background themes and light text colors.


1 Answers

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++

    • Default Theme (Preview)
    • Lazy Theme (Preview)

AutoHotkey highlighting default theme

like image 75
Stevoisiak Avatar answered Sep 20 '22 19:09

Stevoisiak