Page 1 of 1

Curly brackets not "auto aligning"

Posted: Mon Jan 04, 2010 5:36 pm
by jeffy
In earlier versions of TextPad, when you typed

Code: Select all

[tab]text()  {[cursor]
And then pressed enter, the cursor would be automatically indented, resulting in

Code: Select all

[tab]text()  {
[tab][tab][cursor]
...and then when you pressed enter again...

Code: Select all

[tab]text()  {
[tab][tab]
[tab][tab][cursor]
...and then the close-curly-bracket, it would automatically UN-indent:

Code: Select all

[tab]text()  {
[tab][tab]
[tab]}[cursor]
In otherwords, it automatically formatted the function for you. Now, in version 5.3.1, it's not doing any of that automatic stuff. I have to press [enter][tab] after the open-curly, and [enter][backspace][close-curly].

I don't see any configuration related to this either.

Am I crazy? Can anyone help me? :' (

Posted: Mon Jan 04, 2010 8:07 pm
by ben_josephs
Hi Jeffy!

Configure | Preferences | Document Classes | <Class> | Automatically indent blocks
or
View | Document Properties | Automatically indent blocks

Posted: Sun Jan 10, 2010 11:57 pm
by jeffy
ben_josephs wrote:Hi Jeffy!

Configure | Preferences | Document Classes | <Class> | Automatically indent blocks
or
View | Document Properties | Automatically indent blocks
You, my friend, rock.

(it doesn't seem to be anywhere in the help files.)