I'm glad to hear how other people are doing what.

I'm using "HIDEMARU" editor, famous & supreme one, but it does not
have a build-in command to (un)comment perl code, so I creaded a
HIDEMARU macro "PerlAltComment.mac" and set up it as "Ctrl + 1".
This macro (un)comments the (commented)codes at once.

------------------------------------------
01 if ($debug1) {
02   if ($debug2) {
03     if    (/^abc/) { $abc = 1 }
04     # elsif (/^def/) { $def = 1 }
05     # elsif (/^xyz/) { $xyz = 1 }
06     elsif (/^w12/) { $w12 = 1 }
07     elsif (/^w34/) { $w34 = 1 }
08     else           { $nothing = 1 }
09   }
10 }
------------------------------------------
  select line 04-07
  Ctrl + 1
------------------------------------------
01 if ($debug1) {
02   if ($debug2) {
03     if    (/^abc/) { $abc = 1 }
04     elsif (/^def/) { $def = 1 }
05     elsif (/^xyz/) { $xyz = 1 }
06     # elsif (/^w12/) { $w12 = 1 }
07     # elsif (/^w34/) { $w34 = 1 }
08     else           { $nothing = 1 }
09   }
10 }
------------------------------------------

Regards,

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> Subject: Re: Name of IF style
> 
> My way of "fast" commenting code in UE:
> 
> - Select the code to be commented
> - ALT-E
> - 3x arrow UP (2x = uncomment)
> - Enter
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to