I have another idea how to always jump right to the matching
} without changing the brace strings in the wordfile. This solution gives you the possibility to use the Match Brace command for {}, () and [], and additionally you can use a different hotkey to always jump to matching
} independent of the current cursor position.
You have to copy following macro code lines into a new macro using the Edit Macro dialog. You can specify any name for the macro. Important is that you disable first macro property
Show Cancel dialog for this macro, but enable the second macro property
Continue if search string not found. And of course you should specify a hotkey for the macro to be able to fast execute it at any time later.
IfCharIs "{"
Else
Find MatchCase Up "{"
IfNotFound
Find MatchCase "{"
IfNotFound
ExitMacro
EndIf
EndIf
EndSelect
Key LEFT ARROW
EndIf
MatchBrace
IfSel
EndSelect
Key LEFT ARROW
Key RIGHT ARROW
EndIf
Please insert at top of this macro the command for the regular expression engine you prefer to use (UnixReOff or UltraEditReOn, UnixReOn, PerlReOn). The macro does not run regular expression searches, but also non regular expression searches are done with one of the 3 search engines and therefore it should be specified which one.
You should save the macro into a macro file (probably with other macros) which is specified at
Macro - Set Auto Load for automatic loading on startup of UltraEdit. Then the macro file with this special macro is automatically loaded on startup of UltraEdit and you just have to press the macro hotkey to execute the macro and position the cursor right of next matching
}.
Here is the macro code again with indentations for easier reading and understanding:
Code: Select all
IfCharIs "{"
Else
Find MatchCase Up "{"
IfNotFound
Find MatchCase "{"
IfNotFound
ExitMacro
EndIf
EndIf
EndSelect
Key LEFT ARROW
EndIf
MatchBrace
IfSel
EndSelect
Key LEFT ARROW
Key RIGHT ARROW
EndIf