Using the "VIEW>VISIBLE SPACES" options, I opened some of my files and noticed some white spaces that are not needed, like in this screenshot:
How can I eliminate those unneeded white spaces? I want to eliminate the white spaces BUT keeping the indenting, is it possible?
thanks
How to eliminate white space?
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
A regular expression search and replace can remove whitespace from the end of each line. Click Search, Replace then fill in the "Find what' field with [[:blank:]]+$ and leave the other field blank. Make sure the "use regular expressions" box is checked.
How the regular expression works:
[[:blank:]] matches a tab or a space
+ matches one or more occurances of the previous item
$ constrains the searches to the end of the line
Hope that helps
Addendum: You can download a "Reformatting" macro that does this
http://www.textpad.com/add-ons/macros.html
How the regular expression works:
[[:blank:]] matches a tab or a space
+ matches one or more occurances of the previous item
$ constrains the searches to the end of the line
Hope that helps
Addendum: You can download a "Reformatting" macro that does this
http://www.textpad.com/add-ons/macros.html