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
Best Text Editor for AHK?
-
- Posts: 860
- Joined: 21 Dec 2015, 02:34
Re: Best Text Editor for AHK?
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
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
- Sabestian Caine
- Posts: 528
- Joined: 12 Apr 2015, 03:53
Re: Best Text Editor for AHK?
No doubt, the best editor for ahk is AHK Studio by Maestrith.
Check out this link-
https://the-automator.com/ahk-studio/
Check out this link-
https://the-automator.com/ahk-studio/
I don't normally code as I don't code normally.
Re: Best Text Editor for AHK?
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.
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
toralf
-
- Posts: 860
- Joined: 21 Dec 2015, 02:34
Re: Best Text Editor for AHK?
perhaps change the color of the fonts. For example:
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)
Code: Select all
lbutton::
msgbox, you clicked
return
z::
msgbox, you pressed z
return
h::
msgbox, you pressed h
return
(I'm sure this can already be done but I haven't figured out how yet)
Re: Best Text Editor for AHK?
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.
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
toralf
-
- Posts: 860
- Joined: 21 Dec 2015, 02:34
Re: Best Text Editor for AHK?
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!
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!
Re: Best Text Editor for AHK?
- 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
- 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
Re: Best Text Editor for AHK?
Curious that no one mentions SciTE4AutoHotkey.
____________________________________________________________________________
Windows 10 Pro 64 bit - Autohotkey v1.1.30.01 64-bit Unicode
Windows 10 Pro 64 bit - Autohotkey v1.1.30.01 64-bit Unicode
Re: Best Text Editor for AHK?
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.
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.
Re: Best Text Editor for AHK?
I also vote for AHK Studio by Maestrith. Did a great job, and it's coded entirely with AutoHotkey.Sabestian Caine wrote: ↑19 May 2019, 05:14No doubt, the best editor for ahk is AHK Studio by Maestrith.
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).
Re: Best Text Editor for AHK?
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.
Re: Best Text Editor for AHK?
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.
- WalkerOfTheDay
- Posts: 710
- Joined: 24 Mar 2016, 03:01
Re: Best Text Editor for AHK?
SOTE wrote: ↑10 Dec 2019, 06:57I also vote for AHK Studio by Maestrith. Did a great job, and it's coded entirely with AutoHotkey.Sabestian Caine wrote: ↑19 May 2019, 05:14No doubt, the best editor for ahk is AHK Studio by Maestrith.
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 !
Re: Best Text Editor for AHK?
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.
For the rest, a (slightly customized) Scite4AHK is usually good enough for me.
Re: Best Text Editor for AHK?
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.
Re: Best Text Editor for AHK?
Second post from the top or https://www.autohotkey.com/boards/viewtopic.php?f=6&t=6113