This is a very minor issue that has nonetheless annoyed me for months. I\'ve spent hours Googling it to no avail.
To enable syntax highlighting of .ahk files in Notepad+
It should be working. Check again:
Settings → Style Configurator
, select your language and add in the User ext.
the ahk
extension (without a dot!).Language → Define your language
, then select from the dropdown list your language, and in the text box named Ext.
that will appear, add your "ahk" extension.ahk
extension is defined ONLY to AutoHotKey, not in two languages simultaneously (so remove the extension from AutoIt)..xml
or a .udl
file. If the file was created correctly, it should already include the extension reference and automatically recognize new files and display them in the proper context. However, any files open in NPP will not automatically display the new colour highlighting until you close and re-open them.
Here is more information on NPP highlighters.
Here are some more User-Defined Highlighters.
Otherwise, maybe something is wrong with your udl file. You can try one that I made, if you like.
My problem was that upon importing a friend's file, the extension field associated with my user-defined language had quotes around it : "mcr". I eliminated the quotes and now it works perfectly.