AHKCodeViewer
Note: PhiLho has written a similar script you might want to take a look at.
Edit:
As those who attempted to use the previous version of this script surely noticed, it was quite buggy. Seeing that we now have RegEx's, however, it should be possible to get it to work.
It's almost guaranteed that there are still some bugs. Please let me know when you find one.
Note: You can...
*Drag&Drop files and folders
*Remove file from the treeview with right-click context menu
Get it here
Truely awesome Roland !
So many applications possible ^_^
Roland: Many thanks for this great script!
You're welcome.
There are a few problems right now, but mostly with the OTB style. In any case, I should have them fixed soon.
If this program already does that, sorry.
A couple of ideas/comments...
You might want to rename the post/script to something different since it does a heck of lot more than just view functions. Something like AHKViewer or AHKCodeViewer.
Also, a fixed font for the code side of the viewer might be more appropriate since it is code we're looking at.
An option for AOT might be helpful for persons like me who like to use the drag & drop feature.
These are just ideas. Once again, thanks for sharing.
I see three of them... :-)A couple of ideas/comments...
It depends on taste, I edit AutoHotkey code in SciTE with a proportional font.Also, a fixed font for the code side of the viewer might be more appropriate since it is code we're looking at.
What is AOT?An option for AOT might be helpful for persons like me who like to use the drag & drop feature.
Although this script was originally designed so that the developer can easily find and extract code from a script (a very noble requirement), the beauty and simplicity of the design allows for it to be a fairly effective AHK code viewer. I agree that it would be nice to add children for hotkeys and hotstrings but I didn't want to appear too greedy.Interesting, there are some other similar scripts, like my List functions (+ labels + hotstuff) in an AutoHotkey script, not necessarily with GUI. The treeview is under used here.
Sorry 'bout that. My calculator program crashed when I was trying to add up the total number ideas/comments. I had to manually calculate the total and... :oops:I see three of them... :-)
Definitely a personal taste thing. I have a lot of code that don't look right displayed with a proportional font. I guess I could modify the code...It depends on taste, I edit AutoHotkey code in SciTE with a proportional font.Also, a fixed font for the code side of the viewer might be more appropriate since it is code we're looking at.
I too hate people that casually use uncommon or undocumented TLA's (three letter acronym) as though everyone knows what they mean. AOT is a TLA for "Always On Top". Please accept my apology for the UTLA (undocumented three letter acronym).What is AOT?
There is also Acronym Finder, but the problem with TLA is ambiguity: AOT returns 27 definitions, including Always On Time, As Opposed To, Absolutely Off Topic and some other more or less likely candidates...define:Word usualy helps on google, or just Word
I tend to use acronyms too, hoping they are common enough to be unambiguous, like FYI, IIRC, AFAIK and so on.
You, majkinetor, are recently fond of "ofc", which mean, I guess, "of course".
I usually edit scripting languages, often informal and short code, with proportional fonts, easier for the eye and offering more code in one line, and compiled languages (C, Java...) with fixed-width font (Andale Mono or Bitstream Vera Sans Mono). Anyway, I made for SciTE a shortcut key to quickly switch back and forth to fixed-width font in case of need (fancy comments, comparison of strings, etc.).I have a lot of code that don't look right displayed with a proportional font.
You might want to rename the post/script to something different since it does a heck of lot more than just view functions. Something like AHKViewer or AHKCodeViewer.
Good idea.
Also, a fixed font for the code side of the viewer might be more appropriate since it is code we're looking at.
I figured my addiction to Comic Sans would cause an uproar I actually meant to change it before uploading, but then forgot.
I changed the font for the edit to one that PhiLho suggested; you can change it to whatever you like though.
An option for AOT might be helpful for persons like me who like to use the drag & drop feature.
I never think of that as I'm used to using NiftyWindows to set any window AOT whenever I want.
You can turn on AOT in the settings section now.