![]() |
..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:
|
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? |
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!
|
Namo has a handy little html clean up option that makes the source code look nice & tidy.
|
If I understood it correctly he also wants trailing and preceding spaces/tabs to be removed, so that code like
Code:
Code:
|
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 |
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... |
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() |
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. |
All times are GMT -4. The time now is 04:18 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc