Curly brackets not "auto aligning"

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
User avatar
jeffy
Posts: 323
Joined: Mon Mar 03, 2003 9:04 am
Location: Philadelphia

Curly brackets not "auto aligning"

Post 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? :' (
ben_josephs
Posts: 2459
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Hi Jeffy!

Configure | Preferences | Document Classes | <Class> | Automatically indent blocks
or
View | Document Properties | Automatically indent blocks
User avatar
jeffy
Posts: 323
Joined: Mon Mar 03, 2003 9:04 am
Location: Philadelphia

Post 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.)
Post Reply