An SE aid
Posted: Tue Jul 23, 2024 4:58 pm
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.