[Eric] smart indent

detlev detlev at die-offenbachs.de
Fri Feb 12 17:04:04 GMT 2010


On Freitag, 12. Februar 2010, David Arnold wrote:
> All,
> 
> What is Smart Indent on the Edit menu supposed to do? I had:
> 
> if isfile(self.filename):
> text=open(self.filename).read()
> self.ui.editor_window.setText(text)
> 
> I tried highlighting all this text, then selecting smart indent from the
>  file menu and got:
> 
> if isfile(self.filename):
> text=open(self.filename).read()
> self.ui.editor_window.setText(text)
> 
> No change?
> 
> D.
> _______________________________________________
> Eric mailing list
> Eric at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/eric
> 

It indents/unindents the selected text or the current line to the possible 
indentation levels. However, that might not be valid code.

Detlev
-- 
Detlev Offenbach
detlev at die-offenbachs.de


More information about the Eric mailing list