Notepad++ and Visual Studio Code are both great free options. Speaking of this, it's a good idea to upgrade your text editor from the basic Notepad.
Just make sure it has the right file extension! Note that you can also open your text editor, type up an AutoHotkey script, and save it as a file ending in.