Best Text Editor for AHK?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
scriptor2016
Posts: 860
Joined: 21 Dec 2015, 02:34

Best Text Editor for AHK?

19 May 2019, 00:41

Hello, currently I am using Notepad++ and plain old Notepad for scripting in AHK.

In Notepad++, I like to use the 'Doc Switcher' option which shows all scripts loaded into Notepad in a list format in its own window. Problem is, I can't get the list to sort alphabetically - and I have no idea why.

Also, Notepad++ doesn't have an option to change font colors in your code (or if it does, I haven't found out how). Is there any other software which might allow you to simply highlight some text in your script and change its color? Just wondering - I think this would be amazing.

Is there a better editor for AHK out there than Notepad++ (that might allow you to change font colors)??
Thanks :)
Ridwan
Posts: 144
Joined: 17 Oct 2015, 21:06
Location: Indonesia

Re: Best Text Editor for AHK?

19 May 2019, 02:40

I like SublimeText
https://github.com/ahkscript/SublimeAutoHotkey
with PlasticCodeWrap theme by joedf
https://joedf.ahkscript.org/plasticcodewrap/index.html

and the simple and fast CodeQuickTester by GeekDude (but i think it can't change the font color)
https://www.autohotkey.com/boards/viewtopic.php?f=6&t=6113
User avatar
Sabestian Caine
Posts: 528
Joined: 12 Apr 2015, 03:53

Re: Best Text Editor for AHK?

19 May 2019, 05:14

No doubt, the best editor for ahk is AHK Studio by Maestrith.

Check out this link-
https://the-automator.com/ahk-studio/
I don't normally code as I don't code normally.
toralf
Posts: 868
Joined: 27 Apr 2014, 21:08
Location: Germany

Re: Best Text Editor for AHK?

19 May 2019, 07:43

I use notepad++
But with a few extensions

I do not understand what you exactly want when you write about coloring code.
Do you mean syntax highlighting? Or that e.g. when a variable name is selected all other occurrences are also highlighted? Both is possible with npp.
If you want to achieve something different please elaborate.
ciao
toralf
scriptor2016
Posts: 860
Joined: 21 Dec 2015, 02:34

Re: Best Text Editor for AHK?

19 May 2019, 14:37

perhaps change the color of the fonts. For example:

Code: Select all

lbutton::
msgbox, you clicked
return

z::
msgbox, you pressed z
return

h::
msgbox, you pressed h
return
for the lbutton hotkey block of code, maybe you could change the font colors of all 3 lines to green. Then change all 3 lines of the z:: hotkey block to red, and all 3 lines for the h:: to orange or something. Color-coding the fonts would make it easy to identify where certain parts of the script are, especially in large scripts.

(I'm sure this can already be done but I haven't figured out how yet)
toralf
Posts: 868
Joined: 27 Apr 2014, 21:08
Location: Germany

Re: Best Text Editor for AHK?

19 May 2019, 14:56

I don’t think that this is possible in npp.
It is also contradicting the aim of syntax highlighting.

Usually one structures large scripts with larger comment sections or with lines of e.g. ####
Or by separating the code in different files.
I personally use my own function list to find the location I want to jump to. Or I search for the name. And I use several files to separate the code. I hardly scroll through the code.
ciao
toralf
scriptor2016
Posts: 860
Joined: 21 Dec 2015, 02:34

Re: Best Text Editor for AHK?

19 May 2019, 15:12

I just found out that if you highlight a few lines of code in Notepad++, then right click on it and choose "Style Token/Using 1st Style", it will change the color of the selected lines. This is pretty well what I was looking for (or close enough). There are up to 5 Styles in the context menu, but after all 5 are used up I'm not sure how to add more.

A video on youtube says that when all 5 Style colors are used up, then just highlight another line(s) of code, and again go to "Style Token/Using 1st Style", and then highlight those same lines again but this time choose "Style Token/Using 2nd Style" and it generates a new color not seen in the first 5 styles. Confusing!
yedhrab
Posts: 1
Joined: 09 Dec 2019, 17:37
Contact:

Re: Best Text Editor for AHK?

09 Dec 2019, 17:51

- 👨‍💻 I prefer VsCode to develop AHK project
- ✨ I'm Using YAutoHotkey (https://marketplace.visualstudio.com/items?itemName=yedhrab.yautohotkey) extension for syntax highlight and code snippets
- 🚀 And I suggest 🤍🖤 DarkCode Theme (https://marketplace.visualstudio.com/items?itemName=yedhrab.darkcode-theme-adopted-python-and-markdown) that is really nice dark theme
Odlanir
Posts: 659
Joined: 20 Oct 2016, 08:20

Re: Best Text Editor for AHK?

10 Dec 2019, 04:50

Curious that no one mentions SciTE4AutoHotkey.
____________________________________________________________________________
Windows 10 Pro 64 bit - Autohotkey v1.1.30.01 64-bit Unicode
AHK_user
Posts: 515
Joined: 04 Dec 2015, 14:52
Location: Belgium

Re: Best Text Editor for AHK?

10 Dec 2019, 06:18

I used to use SciTE4AutoHotkey, very good and reliable.

But I switched to AHK Studio, as it has amazing capabilities for AHK.
Only disadvantage is that the default settings are not as userfriendly as other programs (no toolbar, for example), so you need to set this up by yourself.
SOTE
Posts: 1426
Joined: 15 Jun 2015, 06:21

Re: Best Text Editor for AHK?

10 Dec 2019, 06:57

Sabestian Caine wrote:
19 May 2019, 05:14
No doubt, the best editor for ahk is AHK Studio by Maestrith.
I also vote for AHK Studio by Maestrith. Did a great job, and it's coded entirely with AutoHotkey.
https://www.autohotkey.com/boards/viewtopic.php?f=62&t=300 (AHK Studio sub-forum)

Also, AutoGUI works well with it (all AutoHotkey code too).
User avatar
Hellbent
Posts: 2109
Joined: 23 Sep 2017, 13:34

Re: Best Text Editor for AHK?

10 Dec 2019, 08:52

Odlanir wrote:
10 Dec 2019, 04:50
Curious that no one mentions SciTE4AutoHotkey.
I don't use any of the bells and whistles of any editors so I love Scite4AutoHotkey. It is simple, clean, and gets the job done nicely.

On the other hand, if I was into using extra features, I would go with AHK Studio.
User avatar
boiler
Posts: 16957
Joined: 21 Dec 2014, 02:44

Re: Best Text Editor for AHK?

10 Dec 2019, 09:24

I use Visual Studio Code because one of the most important features to me is being able to have two views of the same document open (that don't get out of sync). Also used Notepad++ and Sublime Text for that reason. I would switch to AutoGUI if that feature were added.
User avatar
WalkerOfTheDay
Posts: 710
Joined: 24 Mar 2016, 03:01

Re: Best Text Editor for AHK?

10 Dec 2019, 09:51

SOTE wrote:
10 Dec 2019, 06:57
Sabestian Caine wrote:
19 May 2019, 05:14
No doubt, the best editor for ahk is AHK Studio by Maestrith.
I also vote for AHK Studio by Maestrith. Did a great job, and it's coded entirely with AutoHotkey.
https://www.autohotkey.com/boards/viewtopic.php?f=62&t=300 (AHK Studio sub-forum)

Also, AutoGUI works well with it (all AutoHotkey code too).

Me three !
gregster
Posts: 9014
Joined: 30 Sep 2013, 06:48

Re: Best Text Editor for AHK?

10 Dec 2019, 10:09

For a quick test of a code snippet, GeekDude's CodeQuickTester is great.

For the rest, a (slightly customized) Scite4AHK is usually good enough for me.
User avatar
boiler
Posts: 16957
Joined: 21 Dec 2014, 02:44

Re: Best Text Editor for AHK?

10 Dec 2019, 10:19

I should have mentioned CodeQuickTester as well. I use it every day for testing snippets and running scripts people post on the forum. Very handy.
User avatar
Hellbent
Posts: 2109
Joined: 23 Sep 2017, 13:34

Re: Best Text Editor for AHK?

10 Dec 2019, 10:25

boiler wrote:
10 Dec 2019, 10:19
CodeQuickTester
Do you have a link? If not, can try doing a search myself.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot], sachinme, TAC109 and 334 guests