DonationCoder.com Forum

Other Software => Developer's Corner => Topic started by: MilesAhead on August 05, 2009, 04:08 PM

Title: AutoHotKey Tidy or equivalent?
Post by: MilesAhead on August 05, 2009, 04:08 PM
Right now I'm using Scite4AutoHotKey but I'm wondering if anyone knows of another free editor esp. one that has "Tidy" or equivalent for autoindent and syntax checking. Not to start a favorite editor war, but what are people using for AHK?

Title: Re: AutoHotKey Tidy or equivalent?
Post by: Perry Mowbray on August 06, 2009, 05:50 AM
I use PSPad and I can be pretty untidy  :-[
Title: Re: AutoHotKey Tidy or equivalent?
Post by: skwire on August 06, 2009, 05:54 AM
http://www.autohotkey.com/forum/topic7810.html

For the record, I use PSPad as well.
Title: Re: AutoHotKey Tidy or equivalent?
Post by: MilesAhead on August 06, 2009, 12:49 PM
That ahk tidy script looks like it will do the trick.  :Thmbsup:

Not to start an editor feature war, but does it seem weird to anyone else that an editor doesn't have a hotkey to delete a line?  Or if it does, it's not documented? You sort of have to trial and error the thing.  In Scite based it seems like Control-L will delete a line like in MS Visual Studio, but I haven't found the secret in PsPad yet(I use that mostly for my web stuff.)  I've been selecting a line with Shift-End, then deleting with the Del key.  Is there an Easter Egg to just delete the line in one go?

Thanks guys.
Title: Re: AutoHotKey Tidy or equivalent?
Post by: skwire on August 06, 2009, 03:09 PM
I've been using it for so long that I don't recall the default hotkey but you can change all that here:

Settings, Program Settings, Key Map, Editor, DeleteLine
Title: Re: AutoHotKey Tidy or equivalent?
Post by: MilesAhead on August 06, 2009, 09:28 PM
Thanks skwire. :)
Title: Re: AutoHotKey Tidy or equivalent?
Post by: kartal on August 06, 2009, 11:27 PM
Vim :) There is a syntax file for Ahk as well. I am sure you can use one of the language files for Ahk indenting.
Title: Re: AutoHotKey Tidy or equivalent?
Post by: lanux128 on August 06, 2009, 11:48 PM
I've been selecting a line with Shift-End, then deleting with the Del key.  Is there an Easter Egg to just delete the line in one go?

the default hotkey to delete current line is Ctrl+Y. yes, i too use PSPad.. 8)
Title: Re: AutoHotKey Tidy or equivalent?
Post by: MilesAhead on August 07, 2009, 02:47 PM
The PsPad developer must be a Delphi enthusiast.  They usually do ^Y.  I should have thought to try it.
Title: Re: AutoHotKey Tidy or equivalent?
Post by: MilesAhead on August 07, 2009, 02:48 PM
Vim :) There is a syntax file for Ahk as well. I am sure you can use one of the language files for Ahk indenting.

I have to take a look at vim. When I was playing with Linux I tried vi just enough to see that it would be very powerful, once I quit ripping my hair out. :)