Page 1 of 1

Tab characters (\t) -- More info

Posted: Fri Dec 13, 2013 12:16 am
by gcotterl
The tab character (\t) gets inserted when I do EDIT / INSERT / PASTE AS BLOCK.

Posted: Thu Dec 19, 2013 1:47 pm
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.

Posted: Thu Dec 19, 2013 2:10 pm
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.