Commenting out multiple lines ?
tim at worthy.demon.co.uk
Sat May 19 03:21:18 EDT 2001
In message <86n18a3rpo.fsf at theme.dhs.org>
Yong Lu <lyongu at ailab.pku.edu.cn> wrote:
> Courageous <jkraska1 at san.rr.com> writes:
> > If the triple quote comment technique doesn't work for you,
> > you might look up the boxes program on the web:
> > http://www6.informatik.uni-erlangen.de/~tsjensen/software/boxes/
> > I use this in conjunction with vim; you select an area, hit a key
> > sequence, and the entire area either comments or uncomments
> > python-style.
> > C//
> In vim, you can just select the rectangular region with Ctrl-v, then
> type "I#<ESC>". This will insert # in each line at the same column.
> Very convenient.
Using StrongEd (http://www.stronged.iconbar.com/ or
http://home.eunet.no/~guttorvi/strong.html) you highlight the
region, put cursor at left hand edge of any line (in selected region)
and hit #.
(In fact put cursor anywhere in region and hit anything and it is
entered in same position on all lines.)
|im ---- ARM Powered ----
More information about the Python-list