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

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
freespacing
Posts: 150
Joined: 28 Sep 2016, 11:14
Contact:

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

17 Apr 2019, 03:04

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! :)
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

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

17 Apr 2019, 03:58

idk if there is, but u can always just clone the docs repo and scrape it
starling22
Posts: 12
Joined: 26 Sep 2018, 05:43

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

17 Apr 2019, 04:11

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.
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

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

17 Apr 2019, 06:50

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
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
freespacing
Posts: 150
Joined: 28 Sep 2016, 11:14
Contact:

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

17 Apr 2019, 07:01

Awesome!
Churning all this through Python, will post the results.
freespacing
Posts: 150
Joined: 28 Sep 2016, 11:14
Contact:

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

17 Apr 2019, 12:05

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. ;)
freespacing
Posts: 150
Joined: 28 Sep 2016, 11:14
Contact:

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

19 May 2019, 12:53

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

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: iamMG and 131 guests