Page 2 of 3

Re: Notepad++ Syntax Highlight - AHK v1/2 combined - 2020/07/02 - release 8

Posted: 28 Jul 2020, 03:59
by TheArkive
@sdkyron
This is meant for a dark theme. Change the theme by going to Settings Menu > Style Configurator.... I use "Deep Black".

Re: Notepad++ Syntax Highlight (Dark Theme) - AHK v1/2 combined - 2020/07/02

Posted: 28 Jul 2020, 04:05
by sdkyron
Oh darn sorry, i didn't notice the dark theme part, sorry about that :)

Re: Notepad++ Syntax Highlight (Dark Theme) - AHK v1/2 combined - 2020/07/02

Posted: 28 Jul 2020, 04:49
by ozzii
@sdkyron
The theme of Notepad++ must be dark I think

Re: Notepad++ Syntax Highlight - AHK v1/2 combined - 2020/07/02 - release 8

Posted: 04 Feb 2022, 22:22
by dbareis
TheArkive wrote:
28 Jul 2020, 03:59
@sdkyron
This is meant for a dark theme. Change the theme by going to Settings Menu > Style Configurator.... I use "Deep Black".
Is it possible to set dark theme only for AHK files (in NP++)?

Re: Notepad++ Syntax Highlight - AHK v1/2 combined - 2020/07/02 - release 8

Posted: 05 Feb 2022, 04:29
by TheArkive
dbareis wrote:
04 Feb 2022, 22:22
Is it possible to set dark theme only for AHK files (in NP++)?
I'd have to make a separate theme. But thats not too hard. If you dont want to wait, you can install this theme and change the colors yourself in User Defined Language menu in Notepad++.

Re: Notepad++ Syntax Highlight - AHK v1/2 combined - 2020/07/02 - release 8

Posted: 05 Feb 2022, 15:39
by dbareis
TheArkive wrote:
05 Feb 2022, 04:29
dbareis wrote:
04 Feb 2022, 22:22
Is it possible to set dark theme only for AHK files (in NP++)?
I'd have to make a separate theme. But thats not too hard. If you dont want to wait, you can install this theme and change the colors yourself in User Defined Language menu in Notepad++.
It was actually a question about np++ which I don't know much about (if I could have one theme for AHK and the rest white) but a white theme would be great :-)

Re: Notepad++ Syntax Highlight - AHK v1/2 combined - 2020/07/02 - release 8

Posted: 05 Feb 2022, 16:03
by TheArkive
dbareis wrote:
05 Feb 2022, 15:39
It was actually a question about np++ which I don't know much about (if I could have one theme for AHK and the rest white) but a white theme would be great :-)

Ah, I believe so, but I haven't ever tried that actually. Sorry I couldn't be more help.

Re: Notepad++ Syntax Highlight (Dark Theme) - AHK v1/2 combined - 2020/07/02

Posted: 08 Feb 2022, 09:31
by lmstearn
Thanks for sharing. :)
AHKSyntax Highlighting.xml
(27.76 KiB) Downloaded 329 times
gives this a softer feel combining it with HinkerLoden's style on a greenish background.
Spoiler
Just curious, were there items in particular set to go in Keywords7?

Re: Notepad++ Syntax Highlight (Dark Theme) - AHK v1/2 combined - 2020/07/02

Posted: 08 Feb 2022, 10:42
by TheArkive
@lmstearn
I actually can't remember at the moment. I think I found that some items were split (like certain functions/commands), and I ended up taking what was there and putting it somewhere else.

This is actually modified from one of the "official" threads for Notepad++ setup (I think this one maybe), but honestly I just can't remember.

For me, I just found the grouping of keywords in AHK to make more sense with only 7 groups, not all 8.

And actually this theme is due for an update. I just haven't got around to it yet.

Re: Notepad++ Syntax Highlight (Dark Theme) - AHK v1/2 combined - 2020/07/02

Posted: 12 Nov 2022, 20:58
by lexikos
Class is missing as a keyword.

I think global, local and static make more sense to be grouped with (coloured like) control flow statements rather than commands.

Is there no way for a UDL to integrate with the current Notepad++ theme?

Re: Notepad++ Syntax Highlight (Dark Theme) - AHK v1/2 combined - 2020/07/02

Posted: 13 Nov 2022, 03:05
by TheArkive
lexikos wrote:
12 Nov 2022, 20:58
Class is missing as a keyword.

I think global, local and static make more sense to be grouped with (coloured like) control flow statements rather than commands.

Is there no way for a UDL to integrate with the current Notepad++ theme?

Ok I'll make those changes.

As for UDL and theme stuff, it really depends on the user configuration of Notepad++, and there is no "cure" for near-white text against a white background.

I can come up with a few different themes. That should work out fine.

EDIT: If there were a link between UDL theme and Notepad++ theme, that would be nice, but I've never found such a link.

Re: Notepad++ Syntax Highlight (Dark Theme) - AHK v1/2 combined - 2020/07/02

Posted: 18 Jan 2023, 09:05
by A Keymaker
Great- but how can I use this?


After coping AutoHotkey v1-v2 Syntax Highlighting.xml file to

C:\Users\YOUR-USER-NAME\AppData\Roaming\Notepad++\themes

it was selectable under

Settings > Style Configurator > Select theme

but after selecting it both Launguage and Style became empty and when I clicked the Save & Close button, Notepad++ just apparently crashed and closed. After opening it again, my choice was reverted to previously used theme

Re: Notepad++ Syntax Highlight (Dark Theme) - AHK v1/2 combined - 2020/07/02

Posted: 18 Jan 2023, 10:40
by TheArkive
A Keymaker wrote:
18 Jan 2023, 09:05
Great- but how can I use this?


After coping AutoHotkey v1-v2 Syntax Highlighting.xml file to

C:\Users\YOUR-USER-NAME\AppData\Roaming\Notepad++\themes

it was selectable under

Settings > Style Configurator > Select theme

but after selecting it both Launguage and Style became empty and when I clicked the Save & Close button, Notepad++ just apparently crashed and closed. After opening it again, my choice was reverted to previously used theme

Yah I need to re-upload some stuff, and modify the instructions. Newer versions of Notepad++ are different from when the OP was first made. It's on my to-do list.

Re: Notepad++ Syntax Highlight (Dark Theme) - AHK v1/2 combined - 2020/07/02

Posted: 30 Sep 2023, 04:50
by RUBn
First, Thanks for a great theme.
Secondly, I found a "bug" when working with multiple quotes. It wrongly colors from ] onwards the rest of the ahk file. Even here on the forum it's colored wrongly.

Code: Select all

FoundPos := RegExMatch(A_LoopReadLine, '"playerName": "([^"]+)"' , &O)

Re: Notepad++ Syntax Highlight (Dark Theme) - AHK v1/2 combined - 2020/07/02

Posted: 30 Sep 2023, 10:32
by TheArkive
I guess it's time for an update. Mine currently doesn't do that.

Re: Notepad++ Syntax Highlight (Dark/Light Theme) - AHK v1 & v2 - 2023/09/30

Posted: 01 Oct 2023, 03:28
by RUBn
TheArkive wrote:
30 Sep 2023, 10:32
I guess it's time for an update. Mine currently doesn't do that.
You got a newer developer version where it might be fixed or you think it's something on my side?

Re: Notepad++ Syntax Highlight (Dark/Light Theme) - AHK v1 & v2 - 2023/09/30

Posted: 01 Oct 2023, 08:12
by TheArkive
I use Npp v8.5.7 (latest). I also updated the op with the UDL settings i use currently. Did you try those?

Re: Notepad++ Syntax Highlight (Dark/Light Theme) - AHK v1 & v2 - 2023/09/30

Posted: 01 Oct 2023, 10:10
by RUBn
Same n++ version. Remind me what op is?

Re: Notepad++ Syntax Highlight (Dark/Light Theme) - AHK v1 & v2 - 2023/09/30

Posted: 01 Oct 2023, 22:40
by TheArkive
OP = original post, first post in this thread

Re: Notepad++ Syntax Highlight (Dark/Light Theme) - AHK v1 & v2 - 2023/09/30

Posted: 02 Oct 2023, 10:22
by RUBn
TheArkive wrote:
01 Oct 2023, 22:40
OP = original post, first post in this thread
Dow! Of course! I was thinking something in N++. Anyway, it works now! Thanks for the update!