Page 1 of 1

Indentation based on brackets

Posted: Mon Jan 20, 2003 10:41 pm
by Peter J.
Hello everyone.

Is there some way (search & replace or otherwise) that I may indent lines of code based on the level of nested brackets? That is, I would like to find the inner most nested text and indent those lines according to their level within other brackets: top level - no indentation, next level - indented once, next level - indented again, etc.

I hope I've made sense here. FoxPro has a function that did just that. It is called 'Beautify' and works wonderfully.

Thanks for any input,

Peter.

Re: Indentation based on brackets

Posted: Tue Jan 21, 2003 7:13 am
by Ed
There is some freeware that works very well from
http://perso.club-internet.fr/cbeaudet/
- naturally this integrates with TextPadto do what you want.
Read the notes that come with it, turn off everything you don't want