Indentation question
Anand Pillai
pythonguy at Hotpop.com
Sun Aug 24 07:06:08 EDT 2003
I can suggest two editors which does the block indentation.
1. IDLE
2. GNU Emacs
In IDLE AFAIK, this option is available as "Dedent Region"
to indent the code-block lesser, and "Indent Region" to indent
it more, i.e to the right.
In GNU Emacs, you can mark the region you want to indent/dedent,
go to the Editor menu and say, "Indent Right More", "Indent Left More",
etc which respectively indents the code-block more to the right
and more to the left.
-Anand
David Lees <abcdebl2nonspammy at verizon.net> wrote in message news:<1aV1b.9190$vy5.3133 at nwrddc01.gnilink.net>...
> Christos TZOTZIOY Georgiou wrote:
> > On Sat, 23 Aug 2003 05:50:25 GMT, rumours say that Geoff Howland
> > <ghowland at lupineNO.SPAMgames.com> might have written:
> >
> > [David Lees asks how to indent and unindent a group of lines in his
> > code, referring to PythonWin and EditPadLight]
> >
> >
> >>A lot of editors use the method of:
> >>
> >>1. Select lines of text
> >>2. Press TAB or SHIFT+TAB to change indentation out or in
> >>respectively.
> >
> >
> >>I dont know about those editors though.
> >
> >
> > This works for PythonWin, I don't know for EditPadLite. In IDLE (in
> > windows at least), the keypresses are ^[ and ^] for unindenting and
> > indenting, respectively; check the Edit menu for the actual shortcuts.
>
> I just tried it in EditPad and PythonWin. It works in both. Thanks
> guys, this is real handy to know.
>
> David Lees
More information about the Python-list
mailing list