Pythonw IDLE Tab setting
Bernhard Mulder
bernhard_mulder at ccm.sc.intel.com
Fri Apr 16 17:11:12 EDT 1999
Here are the changes I made to get an indent of 3:
78c78
< spaceindent = 3*" "
---
> spaceindent = 4*" "
110,111c110,111
< if i == n and chars[-3:] == " ":
< ndelete = 3
---
> if i == n and chars[-4:] == " ":
> ndelete = 4
155c155
< line = line[:i] + " " + line[i:]
---
> line = line[:i] + " " + line[i:]
171,173c171,173
< indent = indent[:-1] + " "
< elif indent[-3:] == " ":
< indent = indent[:-3]
---
> indent = indent[:-1] + " "
> elif indent[-4:] == " ":
> indent = indent[:-4]
176c176
< indent = indent[:-3]
---
> indent = indent[:-4]
"Colin J. Williams" wrote:
> The program AutoIndent.py has:
>
> prefertabs = 0
> spaceindent = 4*" "
>
> Should spaceindent be changed to 2 if one wishes the tabs to have
> that value?
>
> Currently I use PythonWin which permits the user to change the Tab
> value (incidentally, it also provides for breakpoints).
>
> Any advice would be appreciated.
>
> Colin W.
More information about the Python-list
mailing list