Replace Blank
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Replace Blank
I'm a absolute beginner and i have the problem to replace Tabs with Blanks. I can find the Tabs ( \t) with search and replace, but i didn't find out how to replace with Blanks. Which sequence is to key in into the replace field.
kind regards
kind regards
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
You can't do it that way, because different tabs need to be replaced by different numbers of spaces.
Go to Document Properties (Alt+Enter), select the "Tabulation" tab, set "Default tab spacing" to whatever you want, select "Convert existing tabs to spaces when saving files". Than make sure the file needs saving (e.g. by overwriting a space with a space), and save it.
Go to Document Properties (Alt+Enter), select the "Tabulation" tab, set "Default tab spacing" to whatever you want, select "Convert existing tabs to spaces when saving files". Than make sure the file needs saving (e.g. by overwriting a space with a space), and save it.
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
Probably the primary use of tabs is to line text up vertically. If that is their purpose in this case, and if the effect is to be maintained, then the number of spaces required to replace each individual tab character depends on the positions of the tab stops and on the position of that tab. If the tab stops are at columns 1, 9, 17, 25, ... then a tab at column 9 needs to be replaced with 8 space characters, one at 10 with 7,... one at 16 with 1, one at 17 with 8, and so on.
I presumed that the original poster's problem was not merely the inability to type a space in the "Replace with" field. But the original message is ambiguous, and I may be wrong.
I presumed that the original poster's problem was not merely the inability to type a space in the "Replace with" field. But the original message is ambiguous, and I may be wrong.
- Bob Hansen
- Posts: 1516
- Joined: Sun Mar 02, 2003 8:15 pm
- Location: Salem, NH
- Contact:
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
Tabs
Aren't tabs more reference to fixed column rather than "amount of whitespace" ?
As far as tab handling in editing/RegExp, they're treated as a single char ...
As far as tab handling in editing/RegExp, they're treated as a single char ...
Charles
http://www.charleswebdesign.com/
http://www.charleswebdesign.com/