You are here: PSPad forum > English discussion forum > Code overview
Posted by: halweg | Date: 2022-02-24 11:43 | IP: IP Logged
1. I like the code explorer window to get orientation in my code segments.
Unfortunately in Autohotkey the code explorer shows only labels like a: or doesn't show Hotkey-Labels like
UP:: or ^#g::
Is this by design or do I miss any setting?
2. I use comment lines like
; ======================== Title ==================
to get an overview when scrolling my code.
It would be great, to see such lines in the code explorer (or some other permanent sub-window). Is this possible? Which settings should I modify?
3. Alternatively I can set a bookmark in every ;===== line.
Is it possible to get an overview about the bookmarks the same way like the code explorer?
The existing bookmark list is fine but I can't navigate in this list and it steals me the focus from the main window.
Posted by: pspad | Date: 2022-02-24 11:52 | IP: IP Logged
1. Code labels
there is no problem to modify code parser, but please don't suppose I am worlking with all supported languages. Users are the ones who initiates change.
Can you send me please some more complex AutoHotkey code sample?
2. I use comment lines like
In the Highlighter settings is possibility to set Document comment, what is displayed in the Code explorer. Put there e.g.: ; ===
3. Bookmark overview is available as the bookmark list (Menu Search). But not as docked window
Posted by: halweg | Date: 2022-02-24 16:31 | IP: IP Logged
Thanks again!
pspad:1. Code labels
there is no problem to modify code parser, but please don't suppose I am worlking with all supported languages. Users are the ones who initiates change.
Can you send me please some more complex AutoHotkey code sample?
Labels and functions work fine:
function_name(param1,param2)
{
codeline1
codeline2
(This works for the code explorer)
}
label1:codeline
label2:
codeline1
codeline2
(labels with : works for the code explorer)
RETURN
The problem is with the hotkey labels, s. 1drv.ms
In this code example the hotkeys F13:: an APPSKEY:: are shown in the code explorer but not the others, like #ä::
pspad:2. I use comment lines like
In the Highlighter settings is possibility to set Document comment, what is displayed in the Code explorer. Put there e.g.: ; ===
Thanks. This is a good functionality and it works now. But as visible in the image I need to change the === lines a little bit for more overview.
Posted by: pspad | Date: 2022-03-17 13:02 | IP: IP Logged
Shortcut labels are fixed. Available in the next build
Posted by: halweg | Date: 2022-05-24 15:36 | IP: IP Logged
Hi,
I just downloaded build 731. Hotkey Labels like #t are now visible in the code explorer. Thanks!
But in Autohotkey there are much more kinds of labels possible.
See www.autohotkey.com .
Moreover there are "Hotstrings", see www.autohotkey.com .
Its quite similar.
The simplified rule, as fare I understood, is:
Everything before the last :: (outside quotes) in a line is a Hotstring or a Hotkey Label.
Labels may occur separately on a line or directly before a single line command.
hotkey examples:
^t:: any command
^#+!F4::
Alt & /::
*APPSKEY UP::any command
hotstring examples:
::btw::by the way
:*:j@::
:?:</em>::
:*?:please replace::Please replace
The proper representation of labels in the code explorer isn't the most important think, but having it would be nice.
Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR