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