[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Commenting blocks of code



On Wed, Mar 08, 2000 at 12:31:56AM -0500, Paul N. Schatz wrote:
} 	Someone must have written an AppleScript or MacPerl script or some
} such that permits one to select a block of lines of MacPerl code in a
} window and automatically comment them out or vice versa.  Can someone point
} me in the right direction?

A lot of people use pod for this.  Just surround the block you want to
comment by a

=for nobody
=cut

and Perl won't see it.

As others have pointed out, most editors are programmable these days,
and usually have a "comment selection" equivalent that knows what to
do for various languages.

} 
} 	Paul
} --
} Paul Schatz
} Chem Dept
} University of Virginia
} 

-- 
Paul Schinder
schinder@pobox.com

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org