Tab characters (\t) -- More info

General questions about using TextPad

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

Post Reply
gcotterl
Posts: 252
Joined: Wed Mar 10, 2004 8:43 pm
Location: Riverside California USA

Tab characters (\t) -- More info

Post by gcotterl »

The tab character (\t) gets inserted when I do EDIT / INSERT / PASTE AS BLOCK.
User avatar
jeffy
Posts: 323
Joined: Mon Mar 03, 2003 9:04 am
Location: Philadelphia

Post by jeffy »

That's true. TextPad uses tabs to make sure the text is just where you put it.

I personally select the text and replace \t with [3 spaces] when I don't want the tabs to remain. I need to tweak it after that, though, since it's never perfectly aligned.
ben_josephs
Posts: 2464
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

If you select
Configure | Preferences | Document Classes | <Class> | Tabulation | Convert new tabs to spaces
or
View | Document Properties | Preferences | Convert new tabs to spaces
TextPad will use spaces to align your insertion.

A tab is not equivalent to any fixed number of spaces. To convert tabs to spaces select
Configure | Preferences | Document Classes | <Class> | Tabulation | Convert existing tabs to spaces when saving files
or
View | Document Properties | Preferences | Convert existing tabs to spaces when saving files
and save the file.
Post Reply