Setup Notepad++ for AutoHotkey

Helpful script writing tricks and HowTo's
User avatar
PaulLeavitt
Posts: 58
Joined: 21 Oct 2014, 10:04

Re: Setup Notepad++ for AutoHotkey

24 Oct 2014, 17:27

This looks great! But I do concur with empardopo's question. Is there a way that I can set AHK to be the default style?

Thank!
Paul
trent0226
Posts: 1
Joined: 18 Dec 2014, 10:30

Re: Setup Notepad++ for AutoHotkey

18 Dec 2014, 10:49

I'm running Notepad++ v6.7 and AHK v1.1.16.05. I just recently updated both and now my syntax highlighting is not working properly. It highlighted all the functions in pink before, and anything in quotes in red. But now it does none of that. Any idea on what I can do to fix this?

**Update**
I installed 6.6.9 and everything works fine now. I guess I will just stick with this one.
Attachments
syntax highlighting.png
dmorse2112
Posts: 1
Joined: 23 Dec 2014, 18:43

Re: Setup Notepad++ for AutoHotkey

23 Dec 2014, 19:08

First, thanks for this syntax file. I've been using it for quite a while.

However, I just downloaded the latest version, and my font was no longer monospaced (unlike the screenshots). Looking at the XML, I discovered fontName is now set to Adobe's "Source Code Pro" (previously it wasn't set at all):

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

<WordsStyle name="DEFAULT" fgColor="000000" bgColor="FFFFFF" fontName="Source Code Pro" fontStyle="0" nesting="0" />

Not sure if this change was intentional; if so, you may want to tell folks where to download this font. I downloaded it here: https://github.com/adobe-fonts/source-code-pro.

Thanks again!
Guest

Re: Setup Notepad++ for AutoHotkey

26 Mar 2015, 08:50

Thank you for making and sharing this plugin. Scripts are so much more readable now. Great job!
Arjan

Re: Setup Notepad++ for AutoHotkey

26 Mar 2015, 13:45

Great, thanks! Installed the lazy theme, autocompletion, autosave, explorer and notepadstarter from the sources you mentioned. Very useful, thanks a lot.
toralf n l i

Re: Setup Notepad++ for AutoHotkey

31 Mar 2015, 20:48

I have 2 questions which you may be able to answer,

Is it correct that I do not have to install the XDebug when I install the DBGp plugin?

Are there updated xml files for npp for the latest versions of AHK available?
User avatar
jNizM
Posts: 1829
Joined: 30 Sep 2013, 01:33
GitHub: jNizM
Location: Germany

Re: Setup Notepad++ for AutoHotkey

03 Apr 2015, 05:52

Dont know about the plugins.

I'll update soon as I get time and push it to github.
[AHK] 1.1.24.04 x64 Unicode
[WIN] 10 Pro (Version 1607 | Build 14393.693) x64
My GitHub Profile | Donations are appreciated if I could help you
ClearBlueSky85
Posts: 2
Joined: 19 May 2015, 13:34
Location: St. Louis, MO, USA

Re: Setup Notepad++ for AutoHotkey

19 May 2015, 14:52

Does anyone have a copy of the AHK Notepad++ UDL xml file? I wasn't able to get any of the previous links to work. I may have an older copy that I found in an older AHK 1.0 installation directory, but I don't think the UDL is included in the latest AHK 1.1 install. With the UDL I had to add the comma to the list of operators so that the keywords would still be recognized as explained here:
Keywords in UDLs in notepad++
http://stackoverflow.com/questions/25695271
User avatar
jNizM
Posts: 1829
Joined: 30 Sep 2013, 01:33
GitHub: jNizM
Location: Germany

Re: Setup Notepad++ for AutoHotkey

20 May 2015, 02:29

@ClearBlueSky85
try this link: userDefineLang_AHK.xml (gist)
[AHK] 1.1.24.04 x64 Unicode
[WIN] 10 Pro (Version 1607 | Build 14393.693) x64
My GitHub Profile | Donations are appreciated if I could help you
User avatar
jNizM
Posts: 1829
Joined: 30 Sep 2013, 01:33
GitHub: jNizM
Location: Germany

Re: Setup Notepad++ for AutoHotkey

10 Jul 2015, 10:08

Added: Notepad++ as default Editor for AutoHotkey.ahk files (rightclick => Edit Script)
[AHK] 1.1.24.04 x64 Unicode
[WIN] 10 Pro (Version 1607 | Build 14393.693) x64
My GitHub Profile | Donations are appreciated if I could help you
Skrell
Posts: 163
Joined: 23 Jan 2014, 12:05

Re: Setup Notepad++ for AutoHotkey

23 Jul 2015, 08:12

jNizM wrote:@ClearBlueSky85
try this link: userDefineLang_AHK.xml (gist)

2 questions:
1. This is only for light colored Notepad++ "stylers" correct?
2. Is there anything you can do to color words within %'s the same as the color of the %'s ?

Thank you!
User avatar
jNizM
Posts: 1829
Joined: 30 Sep 2013, 01:33
GitHub: jNizM
Location: Germany

Re: Setup Notepad++ for AutoHotkey

23 Jul 2015, 08:19

@Skrell

1. Yes, my 2 themes are for white background
If you want a dark background you need to change the colors in userDefineLang_AHK.xml fgColor and bgColor too

2. Same color like A_vars? or like normal strings?
Image
[AHK] 1.1.24.04 x64 Unicode
[WIN] 10 Pro (Version 1607 | Build 14393.693) x64
My GitHub Profile | Donations are appreciated if I could help you
Skrell
Posts: 163
Joined: 23 Jan 2014, 12:05

Re: Setup Notepad++ for AutoHotkey

23 Jul 2015, 09:09

I thought I found a notepad++ ahk theme awhile ago that colored everything BETWEEN the % the same color as the % itself and thought this was a great idea. I wish I could find it again. :-/

Also where can I find your 2nd theme? The links in the OP don't work anymore.
User avatar
jNizM
Posts: 1829
Joined: 30 Sep 2013, 01:33
GitHub: jNizM
Location: Germany

Re: Setup Notepad++ for AutoHotkey

23 Jul 2015, 09:16

change this in your xml

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

<Keywords name="Delimiters">00&quot; 01 02&quot; 03% 04 05% 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23</Keywords>

<WordsStyle name="DELIMITERS2" fgColor="FF8040" bgColor="FFFFFF" fontName="Source Code Pro" fontStyle="0" nesting="0" />

and the colors you want


both links work for me (but I upload it to gist too)

Edit:
Links are updated in Topic
Download = Dropbox links
+ gist raw links
[AHK] 1.1.24.04 x64 Unicode
[WIN] 10 Pro (Version 1607 | Build 14393.693) x64
My GitHub Profile | Donations are appreciated if I could help you
Skrell
Posts: 163
Joined: 23 Jan 2014, 12:05

Re: Setup Notepad++ for AutoHotkey

23 Jul 2015, 09:26

Thank you!
cem222
Posts: 1
Joined: 02 Oct 2015, 16:41

Re: Setup Notepad++ for AutoHotkey

02 Oct 2015, 16:50

really helpful, thanks
Bruttosozialprodukt
Posts: 445
Joined: 24 Jan 2014, 22:28

Re: Setup Notepad++ for AutoHotkey

04 Nov 2015, 04:34

The cursor position of the syntax highlighting is completely broken and has been for at least half a year. I tried it on many computers and it's the same issue every time: Whenever there are brackets the cursor position is completely messed up.
So I really don't understand how anyone was able to use this. (Unless of course you somehow manage to not use any brackets?)

Let me show you some screenshots:
Image
Image
Image
Image

This picture show me entering space and backspace at the very end of a line again and again:
Image
You can clearly see that the cursor was never actually between the brackets when entering the space.





So do you know any alternatives?

edit:
This is way better: https://github.com/infogulch/npp-ahk/bl ... neLang.xml
User avatar
jNizM
Posts: 1829
Joined: 30 Sep 2013, 01:33
GitHub: jNizM
Location: Germany

Re: Setup Notepad++ for AutoHotkey

04 Nov 2015, 05:38

I'm not sure where your problem is, but I think it was the Font you used.

I prefer Lazy Theme + Source Code Pro Font by Adobe

Image
Image
[AHK] 1.1.24.04 x64 Unicode
[WIN] 10 Pro (Version 1607 | Build 14393.693) x64
My GitHub Profile | Donations are appreciated if I could help you
Bruttosozialprodukt
Posts: 445
Joined: 24 Jan 2014, 22:28

Re: Setup Notepad++ for AutoHotkey

12 Nov 2015, 08:06

I never changed the font of my Notepad++. The theme should simply work with the default font.

But another thing that annoyed me about the theme is that numbers, commas, colons and god knows what else was printed bolt, which is very distracting, ugly.

How can I remove that?
User avatar
jNizM
Posts: 1829
Joined: 30 Sep 2013, 01:33
GitHub: jNizM
Location: Germany

Re: Setup Notepad++ for AutoHotkey

12 Nov 2015, 08:17

But Notepad++ changed the default font for 2 or 3 versions and removed it again.

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

v6.8.2 (20 Aug 2015)
Due to several incompatibility issues, Source Code Pro font is removed from the release.

v6.8.1 (04 Aug 2015)
"Source Code Pro" in v6.8 could cause your Windows hanging due to some (graphic card?) drivers' problem. In v6.8.1 Notepad++ include Source Code Pro's ttf (font files) instead of otf.
That solves this hanging issue. As well, text/source code display under Source Code Pro is improved by adding its bold, italic and bold-italic fonts in this release.

v6.8.0 (21 Jul 2015)
"Source Code Pro" is used as default font from this version. The font will be applied only if it's your first installation.
In the case you upgrade to v6.8 from an old version, you should set the font "Source Code Pro" as your default font via Styles configurator; otherwise close Notepad++, delete styles.xml (you will lose your old settings) then relaunch it.
Of course you can always restore the old default font "Courier New" via Styler configurator.



change it to fontStyle="0" in your xml you posted
and with fontName="Source Code Pro" you can change the font
[AHK] 1.1.24.04 x64 Unicode
[WIN] 10 Pro (Version 1607 | Build 14393.693) x64
My GitHub Profile | Donations are appreciated if I could help you

Return to “Tutorials”

Who is online

Users browsing this forum: No registered users and 5 guests