There is currently an option to strip training spaces when a file is saved.
Please add this as a menu command — perhaps in Edit, below Reformat — so that temporary text does not need to be saved to a file.
Command — Strip trailing spaces
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
Re: Command — Strip trailing spaces
You can save this as a macro:Search | Replace... (<F8>):
Find what: _+$ [Replace the underscore with a space]
Replace with: [nothing]
[X] Regular expression
Replace All
Replace = " +$", "", RegExp
DoReplaceAll
Re: Command — Strip trailing spaces
Sure, but the code is already part of TextPad and it would be good if it could be available as a menu command.
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
Re: Command — Strip trailing spaces
When you create a macro it automatically becomes available as a menu command. And you can give it whatever keyboard shortcut you please.
Re: Command — Strip trailing spaces
Sure, but the code is already part of TextPad and it would be good if it could be available as a menu command.