Notepad++ Syntax Highlight, AutoComplete - AHK v1 & v2 - 2023/10/05

Scripting and setups with Notepad++ and AutoHotkey.
User avatar
TheArkive
Posts: 1027
Joined: 05 Aug 2016, 08:06
Location: The Construct
Contact:

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

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".
sdkyron
Posts: 61
Joined: 06 Aug 2018, 00:57

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

28 Jul 2020, 04:05

Oh darn sorry, i didn't notice the dark theme part, sorry about that :)
ozzii
Posts: 481
Joined: 30 Oct 2013, 06:04

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

28 Jul 2020, 04:49

@sdkyron
The theme of Notepad++ must be dark I think
dbareis
Posts: 39
Joined: 04 Feb 2022, 17:57

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

04 Feb 2022, 22:22

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++)?
User avatar
TheArkive
Posts: 1027
Joined: 05 Aug 2016, 08:06
Location: The Construct
Contact:

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

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++.
dbareis
Posts: 39
Joined: 04 Feb 2022, 17:57

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

05 Feb 2022, 15:39

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 :-)
User avatar
TheArkive
Posts: 1027
Joined: 05 Aug 2016, 08:06
Location: The Construct
Contact:

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

05 Feb 2022, 16:03

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.
User avatar
lmstearn
Posts: 694
Joined: 11 Aug 2016, 02:32
Contact:

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

08 Feb 2022, 09:31

Thanks for sharing. :)
AHKSyntax Highlighting.xml
(27.76 KiB) Downloaded 350 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?
:arrow: itros "ylbbub eht tuO kaerB" a ni kcuts m'I pleH
User avatar
TheArkive
Posts: 1027
Joined: 05 Aug 2016, 08:06
Location: The Construct
Contact:

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

08 Feb 2022, 10:42

@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.
lexikos
Posts: 9592
Joined: 30 Sep 2013, 04:07
Contact:

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

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?
User avatar
TheArkive
Posts: 1027
Joined: 05 Aug 2016, 08:06
Location: The Construct
Contact:

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

13 Nov 2022, 03:05

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.
User avatar
A Keymaker
Posts: 455
Joined: 31 May 2022, 13:46
Location: Donjon du Château de Mérovingien

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

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
User avatar
TheArkive
Posts: 1027
Joined: 05 Aug 2016, 08:06
Location: The Construct
Contact:

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

18 Jan 2023, 10:40

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.
User avatar
RUBn
Posts: 51
Joined: 27 Nov 2013, 05:12
Contact:

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

30 Sep 2023, 04:50

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)

I am also: Image-motiv for professional, volunteer & open source (web) development
User avatar
TheArkive
Posts: 1027
Joined: 05 Aug 2016, 08:06
Location: The Construct
Contact:

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

30 Sep 2023, 10:32

I guess it's time for an update. Mine currently doesn't do that.
User avatar
RUBn
Posts: 51
Joined: 27 Nov 2013, 05:12
Contact:

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

01 Oct 2023, 03:28

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?

I am also: Image-motiv for professional, volunteer & open source (web) development
User avatar
TheArkive
Posts: 1027
Joined: 05 Aug 2016, 08:06
Location: The Construct
Contact:

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

01 Oct 2023, 08:12

I use Npp v8.5.7 (latest). I also updated the op with the UDL settings i use currently. Did you try those?
User avatar
RUBn
Posts: 51
Joined: 27 Nov 2013, 05:12
Contact:

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

02 Oct 2023, 10:22

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!

I am also: Image-motiv for professional, volunteer & open source (web) development

Return to “Notepad++”

Who is online

Users browsing this forum: No registered users and 7 guests