I've read the help file concerning replacing the Tab character. It suggests to use "\t" (without the quotes) to represent the Tab character. That being said, can Textpad replace only a text representation of the Tab character or can I give the editor a control character allowing it to actually insert a "real" Tab character.
Namaste,
Kevin
Replacing the Tab character
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
If no text is selected, the <tab> key inserts a tab character, unless you have asked TextPad to convert inserted tabs into spaces (in View | Document properties | Tabulation or Configure | Preferences | Document classes | <some class> | Tabulation).
If you are using Find or Replace with regular expressions you can use \t to represent a tab character in both search and replacement expressions.
If you are using Find or Replace with regular expressions you can use \t to represent a tab character in both search and replacement expressions.
- talleyrand
- Posts: 624
- Joined: Mon Jul 21, 2003 6:56 pm
- Location: Kansas City, MO, USA
- Contact:
Howdy Kevin,
Although I must admit howdy is nowhere near as interesting or meaningful as namaste.
I'm not exactly certain what you are looking for but I'll see what I can do. The behaviour of the tab character (0x09) in TextPad is highly configurable. At the document or document class level, you can control whether a hard tab (the actual ASCII control character) or soft tab (space equivalent) is used. I believe there are macros available on the TextPad website to alter the hard/soft tab of a file but I have not verified that.
To see whether the file you are using has hard or soft tabs, you can View, Visible Spaces. If you are attempting to find tab characters,
you will need to have the Regular expression box checked and then the \t will find the horizontal tab control character. If you'd like to replace the text \t with an actual tab, then you would use \\t as your Find criteria and replace it with \t. The \\ in the find will allow it to treat the backslash as a literal element and not an escape sequence.
Let me know if that didn't answer your question and I'll attempt to provide a better answer.
Although I must admit howdy is nowhere near as interesting or meaningful as namaste.
I'm not exactly certain what you are looking for but I'll see what I can do. The behaviour of the tab character (0x09) in TextPad is highly configurable. At the document or document class level, you can control whether a hard tab (the actual ASCII control character) or soft tab (space equivalent) is used. I believe there are macros available on the TextPad website to alter the hard/soft tab of a file but I have not verified that.
To see whether the file you are using has hard or soft tabs, you can View, Visible Spaces. If you are attempting to find tab characters,
you will need to have the Regular expression box checked and then the \t will find the horizontal tab control character. If you'd like to replace the text \t with an actual tab, then you would use \\t as your Find criteria and replace it with \t. The \\ in the find will allow it to treat the backslash as a literal element and not an escape sequence.
Let me know if that didn't answer your question and I'll attempt to provide a better answer.
I choose to fight with a sack of angry cats.