
This is of great convenience to developers, since they can easily collapse all the code except the function(s) they're currently working on.
I am used to the Scinitilla editor in Notepad++ where a CTRL-CLICK of a code fold will fully expand or collapse the fold and all its sub-folds... I still haven't found an equivalent functionality in Zeus,
Code: Select all
FoldingMarkedArea
FoldingOpenAll
FoldingCloseAll
FoldingToggleAll
FoldingToggleAllEx
FoldingLineOpen
FoldingLineClose
FoldingLineToggle
FoldingFindMatching
FoldingFindNext
FoldingFindPrevious
FoldingViewToggle
The macro below will do something similar.This is of great convenience to developers, since they can easily collapse all the code except the function(s) they're currently working on.
Code: Select all
function key_macro()
screen_update_disable()
-- NOTE: this should work but does not at present
-- local line = get_line_pos()
-- close all the folds
FoldingCloseAll()
-- open the current folds
FoldingLineToggle()
-- position the function at the top of the page
ScrollLinePageCenter()
-- NOTE: this should work but does not at present
-- restore the origonaL cursor location
--set_line_pos(line)
screen_update_enable()
screen_update()
end
key_macro() -- run the macro
Sorry Jussi... I tried that macro and it just toggled the current fold.The macro below will do something similar.
Code: Select all
<marker name="Marker 1">
<information><![CDATA[<div>This is a div</div>]]></information>
<icon>images/marker.png</icon>
<shadow>images/shadow.png</shadow>
<position>-28.326626, 153.39386</position>
<visibility>auto</visibility>
<clickable>1</clickable>
</marker>
BTW in my testing I noticed that the code folding doesn't cope with CDATA embedded in XML, where the CDATA contains HTML tags, see below...
Also could you tell me how to assign a key-mapping to "Select All"?
1. Selecting a word by double-clicking it or searching for it, also highlights every other matching instance, (in another colour).
This is very convenient when you are manually changing the name of a variable in a block of code.
This too has been requested before and is on the list of things to investigate.2. When editing an XML document, clicking on a tag name automatically highlights both the tag name and its matching closing tag.
Thanks...Jussi wrote:Use the Options, Editor Options menu select the Keyboard Mapping panel and then binf the MarkSelectAll function to the required key.
Geez Jussi!... thats just not the gold-plated support attitude I've come to expect from you,Jussi wrote:This has been requested before. Unfortunately, I suspect this change would require quite a large number of changes to the searching code in Zeus and as such I am reluctant to make such a big change for a nice to have feature.
Kool!Jussi wrote:This too has been requested before and is on the list of things to investigate.