|
|
|
|
|
|
|
![]() |
#1 | ||
Kids are great, Appu. You can teach them to hate the things you hate and they practically raise themselves now-a-days, you know, with the internet and all
Join Date: Mar 2005
Location: Canadeh
Posts: 197
|
..A Program To Remove Blank Spaces
Im looking for a program that removes all blank spaces from my code. Ive tried numerous searches but cant figure out how to word it exactly.
I want to turn this... Quote:
..into this... Quote:
|
||
![]() |
![]() |
![]() |
#2 |
No matter how good you are at something, there's always about a million people better than you
|
Dunno, but if you can't find one I could always code the program for you. Won't take long and wouldn't cost much.
Why do you need that functionality anyway? |
![]() |
![]() |
![]() |
#3 |
You can now put whatever you want in this space :)
Join Date: Sep 2004
Location: Next door to a kid with a moped.
Posts: 1,492
|
Dreamweaver will do that for you. Just create an empty line in code view, highlight it and do a find and replace. Leave the replace field empty. Voila!
__________________
BUY MY PORNSITES! |
![]() |
![]() |
![]() |
#5 |
No matter how good you are at something, there's always about a million people better than you
|
If I understood it correctly he also wants trailing and preceding spaces/tabs to be removed, so that code like
Code:
<html> <body> </body> </html> Code:
<html><body></body></html> |
![]() |
![]() |
![]() |
#6 |
If there is nobody out there, that's a lot of real estate going to waste!
Join Date: Dec 2003
Posts: 2,177
|
Not sure why people would want these anymore. It is much preferable to keep the indents/newlines if you ever need to do work on the page(s).
Absolute HTML Compressor |
![]() |
![]() |
![]() |
#7 | |
Kids are great, Appu. You can teach them to hate the things you hate and they practically raise themselves now-a-days, you know, with the internet and all
Join Date: Mar 2005
Location: Canadeh
Posts: 197
|
Quote:
I ended up doing it all by hand last night with end delete end delete..., a very boring 1.5 hours. Ill try those suggestions tonight and see which works for next time... Last edited by Doug E; 2007-03-28 at 08:00 PM.. |
|
![]() |
![]() |
![]() |
#8 |
Internet! Is that thing still around?
Join Date: Mar 2007
Posts: 9
|
Theres several ways you can do this, but I would just write a quick php script to spit out the html in a line and copy / paste it (If you wanted to have the script actually write to the file you could, but it's not that hard to copy paste
![]() PHP Code:
str_replace() fopen() fread() |
![]() |
![]() |
![]() |
#9 |
With $10,000, we'd be millionaires! We could buy all kinds of useful things like ... love!
|
I use UltraEdit's "replace text in files" option.
It can do multiple files and will remove all tabs, new lines and spaces between tags in three passes, with the option to do a "test" run to make sure your search line is correct before commiting to every file.
__________________
Playboy Webmasters - The name says it all! $35 per signup or 60% revshare. |
![]() |
![]() |
![]() |
|
|