Block bracket (brace) matching

Usage tips, posted by users. No questions here please.

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
rkrite
Posts: 18
Joined: Wed Oct 08, 2003 10:38 pm
Location: Sydney

Block bracket (brace) matching

Post by rkrite »

I find that in a language such as UNIFACE, there is no function/block enclosures. eg...

Code: Select all


function myfunc (){

   blah

}

the above is using the "{" - "}" braces to enclose the block. In TP, when sitting on one of the enclosures, then pressing <CTRL>-M your cursor is placed on the opposing enclosure.

This is not possible in a language such as UNIFACE where there is no such thing a these types of enclosures.

So, What I do, is this....

Code: Select all

entry LP_MYPROCENTRY ; {

   if ($status > 0) ;{

      do some stuff

   else ;} ;{

      do some other stuff

   endif ;}

end ; LP_MYPROCENTRY ; }

this way, I can utilize the block matching bueaty of TP in UNIFACE proc. Note that the enclosures are simply commented out.
Post Reply