[Top][All Lists]

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

Re: How to uncomment Perl program in emacs?

From: Michael Cadilhac
Subject: Re: How to uncomment Perl program in emacs?
Date: Fri, 19 Aug 2005 12:53:23 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

"Andy" <address@hidden> writes:

> But I can't apply the above method to comment or uncomment Perl codes.
> Alternatively, I can comment Perl codes by first highlighting the codes
> then "M-x comment-region". But I don't know how to uncomment Perl
> codes; at least, "M-x uncomment-region" doesn't work.

  C-u M-x comment-region

,----[ C-h f comment-region ]
| comment-region is an interactive autoloaded Lisp function in `newcomment'.
| It is bound to M-;.
| (comment-region BEG END &optional ARG)
| Comment or uncomment each line in the region.
| With just C-u prefix arg, uncomment each line in region BEG .. END.
| Numeric prefix ARG means use ARG comment characters.
| If ARG is negative, delete that many comment characters instead.
| By default, comments start at the left margin, are terminated on each line,
| even for syntax in which newline does not end the comment and blank lines
| do not get comments.  This can be changed with `comment-style'.
| The strings used as comment starts are built from
| `comment-start' without trailing spaces and `comment-padding'.

    Michael Cadilhac, a.k.a. Micha [mika] |
                    Epita/LRDE promo 2007 |  Please note that you should
  2 rue de la Convention | |  s/address@hidden/@/ my mail 
94270 Le Kremlin Bicetre | |

reply via email to

[Prev in Thread] Current Thread [Next in Thread]