An SE aid
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
An SE aid
I thought I would share this. I have been using this gadget to help me navigate a long script in the SE. It hilites one or more groups of lines so I can easily scroll from one to the other, or find such a group at all.
By selecting one or more lines anywhere in the script, pressing F11 will change the backColor of those lines to yellow. You can do this to as many disparate groups of lines as you want. F12 clears the color of the entire script. If you paste anywhere in the handler, the new text inherits the backColor of the line into which you paste. If you delete lines anywhere, the script contracts, leaving the backColor intact.
In my setup a single very simple handler lives in a plug-in, available everywhere in LC. The attached stack has that handler resident.
The only thing I now wish for in the SE is the "Excel-like" folding of areas of the script, so that two (or more?) "panes" can be set up and vertically sized, allowing one to view and work in two (or more?) different sections of the SE at once. I have a large portrait monitor exclusively for LC scripts. I can see a lot of real estate at once, and being able to view any two (OK, last time, "or more?") sections of a script would be just lovely.
Craig
Edit: Made the stack a bit more instructive. The point is to use this for the SE in general.
By selecting one or more lines anywhere in the script, pressing F11 will change the backColor of those lines to yellow. You can do this to as many disparate groups of lines as you want. F12 clears the color of the entire script. If you paste anywhere in the handler, the new text inherits the backColor of the line into which you paste. If you delete lines anywhere, the script contracts, leaving the backColor intact.
In my setup a single very simple handler lives in a plug-in, available everywhere in LC. The attached stack has that handler resident.
The only thing I now wish for in the SE is the "Excel-like" folding of areas of the script, so that two (or more?) "panes" can be set up and vertically sized, allowing one to view and work in two (or more?) different sections of the SE at once. I have a large portrait monitor exclusively for LC scripts. I can see a lot of real estate at once, and being able to view any two (OK, last time, "or more?") sections of a script would be just lovely.
Craig
Edit: Made the stack a bit more instructive. The point is to use this for the SE in general.
Last edited by dunbarx on Wed Aug 07, 2024 3:42 pm, edited 6 times in total.
Re: An SE aid
For my own purposes Bernd’s code folding solution is practically essential when working with long scripts because with one keystroke I can collapse all handlers and focus only those I care about at that point. And it can be set to group handlers and expand/collapse arbitrary code, I personally wouldn’t manually colourise code, but that’s just me. Maybe this works for others and whatever works is good 
Not sure how feasible it is, but what I would find useful is a VSCode feature: highlighting a word such as a handler or variable name highlights every instance of that same word in the script. In complex long scripts that can be a life saver (or at least a sanity saver!)

Not sure how feasible it is, but what I would find useful is a VSCode feature: highlighting a word such as a handler or variable name highlights every instance of that same word in the script. In complex long scripts that can be a life saver (or at least a sanity saver!)
Re: An SE aid
Stam.
Craig
Here, because I like you.I would find useful is a VSCode feature: highlighting a word such as a handler or variable name highlights every instance of that same word in the script

Craig
Last edited by dunbarx on Wed Jul 24, 2024 3:44 pm, edited 1 time in total.
Re: An SE aid
Stam.
I played with Bernd's lovely gadget. But I find myself navigating all the time from one portion of a long script to another, and find it very useful to know where the several pertinent sections of what I am working on are. I can jump from one to another; oftentimes there are a handful of them.
Anyway, the stack I sent you finds all the words in a field. You just have to modify it so it works with the fields in the SE, and that is a snap.
Craig
I played with Bernd's lovely gadget. But I find myself navigating all the time from one portion of a long script to another, and find it very useful to know where the several pertinent sections of what I am working on are. I can jump from one to another; oftentimes there are a handful of them.
Anyway, the stack I sent you finds all the words in a field. You just have to modify it so it works with the fields in the SE, and that is a snap.
Craig
Re: An SE aid
Stam.
It is likely a good idea to change the line:
to
Craig
It is likely a good idea to change the line:
Code: Select all
find wordToFind in fld 1
Code: Select all
find whole wordToFind in fld 1
Re: An SE aid
Thanks Craig will definitely have a look
(But currently on a Greek island
)
(But currently on a Greek island
