Autohotkey is a fairly irregular language, and most of the syntax highlighting files I've tried don't work very well for it. It doesn't really bother me if any part of this language is highlighted. In fact I don't mind if it looks just like plain text, but what I would like most of all is for indent folding to work. Now I've tried to keep things very simple, since I'm just a noob at syntax highlighting. So far, I've tried this one line syntax file:
- Code: Select all
/L1"Autohotkey" EnableCFByIndent File Extensions = ahk
The trouble with this is that in Autohotkey, there are keywords like "#If", "#IfWinActive", "#LTrim", etc. which, as you can see, start with "#". For some reason, these kinds of keywords won't trigger any indent folding. So, for example:
- Code: Select all
#if winActive(App.ultraEdit)
stuff stuff stuff
more stuff stuff
more stuff stuff
The above code is NOT folded at the "#if". What can I do to solve this problem?

