Remove empty lines
Posted: Fri Apr 23, 2004 3:40 pm
Hi,
I'm trying Textpad now since 1 week and I like it. However there's one problem I have.
When I write code, Textpad automatically sets the whitespaces or tabs when I jump to the next line. I would like to remove these whitespaces and tabs from empty lines with some regexp or so because if there are a lot of them it makes the files a lot bigger. Is that possible? An example of what I mean:
I'm trying Textpad now since 1 week and I like it. However there's one problem I have.
When I write code, Textpad automatically sets the whitespaces or tabs when I jump to the next line. I would like to remove these whitespaces and tabs from empty lines with some regexp or so because if there are a lot of them it makes the files a lot bigger. Is that possible? An example of what I mean:
Code: Select all
if ($foo) {
<---- here are some whitespaces and/or tabs, that I dont need.
echo 'test';
}