Notepad++ 中的 AutoHotkey 语法高亮显示

AutoHotkey syntax highlighting in Notepad++

我想在 Notepad++ 中为 AutoHotkey .ahk 脚本文件显示语法突出显示。

我不想每次打开 AHK 脚本时都手动 select 一种语言。我希望在打开文件时自动应用特定于语言的语法。

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