Is "block highlighting" possible?
Posted: Fri Oct 27, 2000 4:16 pm
Is it possible to make a macro that would "block highlight" increasing levels of nested code expanding outward from the current cursor location? I know about Ctl-m and Ctl-shift-m, but that requires that you start at the beginning or ending of the bracketed content.
For example, if I have a nested series of bracketed code like this:
<@macro_name> {
<#def> total_chap @eval(<#total_chap> + 1)
<|print> { Starting side = <#S_S>}
@if(@match(<#tpl_spec>, {specialist})) {
<#def> _tfile {<#tmplt>\ specialist.mif}
}}
I would like to be able to place my cursor before "_chap" and hit "Ctl-g" (or whatever) to have the "<#total_chap>" highlighted. A second Ctl-g would expand the highlight to "(<#total_chap> + 1)". A third Ctl-g would expand it to the entire macro within the curly braces.
The sequence of nested pairs isn't always the same, so I can't always rely on any particular order.
Thanks for any suggestions.
Sheila
For example, if I have a nested series of bracketed code like this:
<@macro_name> {
<#def> total_chap @eval(<#total_chap> + 1)
<|print> { Starting side = <#S_S>}
@if(@match(<#tpl_spec>, {specialist})) {
<#def> _tfile {<#tmplt>\ specialist.mif}
}}
I would like to be able to place my cursor before "_chap" and hit "Ctl-g" (or whatever) to have the "<#total_chap>" highlighted. A second Ctl-g would expand the highlight to "(<#total_chap> + 1)". A third Ctl-g would expand it to the entire macro within the curly braces.
The sequence of nested pairs isn't always the same, so I can't always rely on any particular order.
Thanks for any suggestions.
Sheila