I just stumbled upon this older post as I'm new to AHK but also use Crimson Editor (personally I don't care if it isn't actively updated. It already does everything I need, so I don't need any updates!)
The sources for
autohotkey.spc and
autohotkey.key in
Z Gecko's post are great, but you need one more file so that Crimson Editor automatically uses this syntax when you edit an AHK file.
After creating and placing
Z Gecko's files in your
Crimson Editor\spec folder, create and place the following file in the
Crimson Editor\link folder:
extension.ahk
Code:
LANGSPEC:autohotkey.spc
KEYWORDS:autohotkey.key
Now the AHK syntax should be used automatically when you load any file with an
.ahk extension.