You are here: PSPad forum > English discussion forum > Code overview

Code overview

#1 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.

Options: Reply | Quote | Up ^


#2 Re: Code overview

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

Options: Reply | Quote | Up ^


#3 Re: Code overview

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.

Options: Reply | Quote | Up ^


#4 Re: Code overview

Posted by: pspad | Date: 2022-03-17 13:02 | IP: IP Logged

Shortcut labels are fixed. Available in the next build

Options: Reply | Quote | Up ^


#5 Re: Code overview

Posted by: halweg | Date: 2022-03-20 10:59 | IP: IP Logged

Thanks!smiling smiley

Options: Reply | Quote | Up ^


#6 Re: Code overview

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. smiling smiley

Options: Reply | Quote | Up ^






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