Atom AHK Support

Discuss features, issues, about Editors for AHK
mikek
Posts: 8
Joined: 30 Sep 2013, 17:17

Atom AHK Support

29 Dec 2015, 13:12

A coworker has prepared an updated Atom syntax theme for AHK, forked from an earlier piece of work from another user. The link is shown below if anyone is interested.

https://github.com/cescue/language-autohotkey

Image
guest3456
Posts: 2074
Joined: 09 Oct 2013, 10:31

Re: Atom AHK Support

29 Dec 2015, 15:11

comments in orange?

normal variables in faded gray?

and aString = "Three point one four" is a literal string, with quotes included, since you used = instead of :=

cescue
Posts: 3
Joined: 29 Dec 2015, 13:14
GitHub: cescue

Re: Atom AHK Support

29 Dec 2015, 16:14

Hi there - maintainer of the repository chiming in.

guest3456 wrote:comments in orange?

normal variables in faded gray?


These colors are determined by Atom themes, not the syntax package. The syntax package simply identifies constructs of the language, themes handle which of those constructs should be highlighted (and in what color).

guest3456 wrote:aString = "Three point one four" is a literal string, with quotes included, since you used = instead of :=


This is valid criticism, I'll eventually update the screenshot.
lexikos
Posts: 5453
Joined: 30 Sep 2013, 04:07
GitHub: Lexikos

Re: Atom AHK Support

29 Dec 2015, 19:30

The entire sample script should be orange. ;)

Code: [Select all] [Download] GeSHi © Codebox Plus

/* This is a comment
This is a comment */

This is still a comment ....
*/
This is not a comment

The forum's syntax highlighting also gets it wrong.
cescue
Posts: 3
Joined: 29 Dec 2015, 13:14
GitHub: cescue

Re: Atom AHK Support

30 Dec 2015, 11:43

Thanks for the feedback! I'll look into fixing that in a (near) future update - it's still a work in progress, and there's a lot left to do.
guest3456
Posts: 2074
Joined: 09 Oct 2013, 10:31

Re: Atom AHK Support

30 Dec 2015, 11:49

cescue wrote:These colors are determined by Atom themes, not the syntax package. The syntax package simply identifies constructs of the language, themes handle which of those constructs should be highlighted (and in what color).


gotcha, similar to Vim

cescue
Posts: 3
Joined: 29 Dec 2015, 13:14
GitHub: cescue

Re: Atom AHK Support

30 Dec 2015, 12:08

guest3456 wrote:
cescue wrote:These colors are determined by Atom themes, not the syntax package. The syntax package simply identifies constructs of the language, themes handle which of those constructs should be highlighted (and in what color).


gotcha, similar to Vim


Exactly. I'll eventually add some screenshots with different themes to the readme, but I'd like to iron out the kinks before working on the documentation.
Coco
Posts: 771
Joined: 29 Sep 2013, 20:37
GitHub: cocobelgica

Re: Atom AHK Support

30 Dec 2015, 16:16

@cescue: I'm not really familiar w/ Atom's customization. Last I read, Atom chose to emulate Sublime/TextMate language grammar definition(.tmLanguage), the only difference is the storage mechanism which is CSON/JSON for Atom. As reference, you can check out the AutoHotkey package for Sublime which comes with the language file or you can check out my custom language file for Sublime.
User avatar
joedf
Posts: 5994
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada, Quebec
Contact:

Re: Atom AHK Support

04 Jan 2016, 00:14

cescue's fork will now be the "defacto" official one. ;)
https://github.com/nshakin/language-aut ... -168565610

Return to “Editors”

Who is online

Users browsing this forum: No registered users and 1 guest