Block comments

Q&A's, tips, howto's
Locked
Maurizio
Posts: 52
Joined: Mon Jul 28, 2003 3:06 pm
Location: Italy

Block comments

Post by Maurizio »

would be very fine to have a way to comment out several rows of code
(something like /* and */)
sometimes, while debugging, I found the necessity to
comment out several procedures at once,
and it's very disturbing to have to comment every single line.

Regards
Maurizio

HPW
Posts: 1390
Joined: Thu Sep 26, 2002 9:15 am
Location: Germany
Contact:

Post by HPW »

I used my favourite editor (Ultraedit) most the time and if offers this as a configurable option with buttons for it. Then the whole block get a ';' at the linebegin.
Hans-Peter

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

just put the whole section of code between

[text]
... code ...
[/text]

or { ... }, but be careful that { } inside are matched.

As the out-commented code is typically on the top level it just sees a string and leaves it alone.

Lutz

Maurizio
Posts: 52
Joined: Mon Jul 28, 2003 3:06 pm
Location: Italy

Post by Maurizio »

Thank you very much
Maurizio

Locked