Page 1 of 1

Making a syntax-highlighting scheme for AHK: Full List of Special Words?

Posted: 17 Apr 2019, 03:04
by freespacing
Howdy everyone,

Embarking on making an ahk syntax-highlighting scheme for EditPad Pro, my favorite plain-text editor. There's already one but ancient and I'd like something robust. Will share once ready.

Thought I'd ask if there's a "canonical list" of ahk special words (built-ins) etc. somewhere, in convenient form.

I looked inside the config files of a few programs and found some very encouraging things. Just thought I'd still ask in case there is something already prepared that is seen as official.

What I've found so far:
The best, so far, was the file inside of SciteAHK:
Spoiler

Also found some useful-looking stuff in the two VS Code schemes:

1. clevesque scheme:
Spoiler
2. cweijan scheme:
Spoiler

Thanks in advance for any tips and thoughts! :)

Re: Making a syntax-highlighting scheme for AHK: Full List of Special Words?

Posted: 17 Apr 2019, 03:58
by swagfag
idk if there is, but u can always just clone the docs repo and scrape it

Re: Making a syntax-highlighting scheme for AHK: Full List of Special Words?

Posted: 17 Apr 2019, 04:11
by starling22
I am an EditpadPro user, some years ago I looked at making syntax highlighting for simple text editing, I had to give up still too complicated for me.
I am very new to AHK so the following is probably not of use.

If you are looking at making syntax scheme(s) I will assume you have also found in AHK the section containing for example:
https://www.autohotkey.com/docs/KeyList.htm

I am certainly interested to see what you can come up with.

Re: Making a syntax-highlighting scheme for AHK: Full List of Special Words?

Posted: 17 Apr 2019, 06:50
by jeeswg
Some lists. Cheers.
list of every command/function/variable from across all versions - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=74&t=27321&p=131642#p131642
AutoHotkey syntax lists (text files) - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=74&t=47603

Re: Making a syntax-highlighting scheme for AHK: Full List of Special Words?

Posted: 17 Apr 2019, 07:01
by freespacing
Awesome!
Churning all this through Python, will post the results.

Re: Making a syntax-highlighting scheme for AHK: Full List of Special Words?

Posted: 17 Apr 2019, 12:05
by freespacing
Okay, I have lists that will work for me, as well as a repo with Python script if someone would like to use / update.
Not saying by any means that this is perfect.

1. GitHub repo: AutoHotkey-Syntax-Summarizer


2. Current lists in "long string format" (separated by pipe characters, i.e. regex-ready)
Spoiler

3. Current lists in classic list format
Spoiler

EDIT:
Added crazy optimized / compressed regular expressions to match the keywords, for instance this:
Spoiler
No, didn't write those manually. ;)

Re: Making a syntax-highlighting scheme for AHK: Full List of Special Words?

Posted: 19 May 2019, 12:53
by freespacing
1. Moved to a new repo called Autohotkey Goodies — for anyone who'd like to collaborate

2. Created syntax-coloring scheme to work with EditPad Pro, which for my needs is now my favorite AHK editing enviroment.

Image