Emacs has a function 'comment-region' that can comment a section of
(I suppose) any type of code it understands, including Perl. This is
not a 'one button' solution however. I would need to type
<alt>Xcomment-region<return>
to make it happen. It could be bound to an available keystroke (by
someone who knows Emacs better than me. ;) I believe that Xemacs might
be able to bind it to a button.
From the Emacs online help:
====================================================
File: emacs, Node: Multi-Line Comments, Next: Options for Comments, Prev:
Comment Commands, Up: Comments
Multiple Lines of Comments
--------------------------
If you are typing a comment and wish to continue it on another line,
you can use the command `C-M-j' (`indent-new-comment-line'). This
terminates the comment you are typing, creates a new blank line
afterward, and begins a new comment indented under the old one. When
Auto Fill mode is on, going past the fill column while typing a comment
causes the comment to be continued in just this fashion. If point is
not at the end of the line when `C-M-j' is typed, the text on the rest
of the line becomes part of the new comment line.
To turn existing lines into comment lines, use the `M-x
comment-region' command. It adds comment delimiters to the lines that
start in the region, thus commenting them out. With a negative
argument, it does the opposite--it deletes comment delimiters from the
lines in the region.
With a positive argument, `comment-region' duplicates the last
character of the comment start sequence it adds; the argument specifies
how many copies of the character to insert. Thus, in Lisp mode, `C-u 2
M-x comment-region' adds `;;' to each line. Duplicating the comment
delimiter is a way of calling attention to the comment. It can also
affect how the comment is indented. In Lisp, for proper indentation,
you should use an argument of two, if between defuns, and three, if
within a defun.
The variable `comment-padding' specifies how many spaces
`comment-region' should insert on each line between the comment
delimiter and the line's original text. The default is 1.
====================================================
--
Hank Barta
At The Hull Group, Chicago
(312) 655-4636
-----Original Message-----
From: Leo Johan Susanto [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 09, 2001 12:41 PM
To: Activeperl (E-mail)
Subject: RE: Perl Editor
which editor has the commenting button?
the one like in Winrunner editor, when you highlight a certain area and push
that button,
it will fill the first char on each line with "#"
Leo
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Thomas
> Bätzler
> Sent: Thursday, October 04, 2001 12:18 PM
> To: Activeperl (E-mail)
> Subject: RE: Perl Editor
>
>
> Hi,
>
> > Richard Fisher [SMTP:[EMAIL PROTECTED]] asked:
> > Does anybody know of any good 'free' perl editors out there for Windows
> > 2000?
> >
> That depends on what you're considering a Perl editor. I'm
> using Textpad (www.textpad.com) and I'm pretty happy
> with it even though Syntax highlighting isn't perfect. On
> the other hand, I've set up "perl.exe -w" as a tool so that
> I can run the code and get results in an extra window at
> a fingerstroke.
>
> If you're looking for an IDE, maybe OptiPerl is for you. A
> colleague showed me the trial version today - looks good
> so far. It even has a class browser :-) You can snag it
> from http://www.xarka.com/optiperl/
>
> HTH,
> Thomas
> _______________________________________________
> ActivePerl mailing list
> [EMAIL PROTECTED]
> http://listserv.ActiveState.com/mailman/listinfo/activeperl
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl