Greenguy's Board


Go Back   Greenguy's Board > I'm Looking For.......
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2007-03-27, 11:39 PM   #1
Doug E
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
 
Doug E's Avatar
 
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:
<html>

<head>
<title></title>
</head>
<body>

</body>
</html>

..into this...
Quote:
<html><head><title></title></head><body></body></html>
...with the click of the button
__________________
Asian Porn | Sora Aoi | Natt Kesarin
Doug E is offline   Reply With Quote
Old 2007-03-28, 06:08 AM   #2
MightyMidget
No matter how good you are at something, there's always about a million people better than you
 
MightyMidget's Avatar
 
Join Date: Apr 2006
Location: Sweden
Posts: 232
Send a message via ICQ to MightyMidget
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?
MightyMidget is offline   Reply With Quote
Old 2007-03-28, 06:34 AM   #3
Lemmy
You can now put whatever you want in this space :)
 
Lemmy's Avatar
 
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!
Lemmy is offline   Reply With Quote
Old 2007-03-28, 09:27 AM   #4
Greenguy
The Original Greenguy (Est'd 1996) & AVN HOF Member - I Crop Pics For Thumbs In My Sleep
 
Greenguy's Avatar
 
Join Date: Feb 2003
Location: Blasdell, NY (shithole suburb south of Buffalo)
Posts: 41,929
Send a message via ICQ to Greenguy
Namo has a handy little html clean up option that makes the source code look nice & tidy.
__________________

Promote POV Porn Cash By Building & Submitting Galleries to the Porn Luv Network
Greenguy is offline   Reply With Quote
Old 2007-03-28, 10:03 AM   #5
MightyMidget
No matter how good you are at something, there's always about a million people better than you
 
MightyMidget's Avatar
 
Join Date: Apr 2006
Location: Sweden
Posts: 232
Send a message via ICQ to MightyMidget
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>
would also become

Code:
<html><body></body></html>
so a simple find/replace of newlines won't do. An editor that supports regular expressions would be able to do it, like UltraEdit, but if you want to do this on a lot of files then a command line utility would be better.
MightyMidget is offline   Reply With Quote
Old 2007-03-28, 02:08 PM   #6
tickler
If there is nobody out there, that's a lot of real estate going to waste!
 
tickler's Avatar
 
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
__________________
Latina Twins, Solo, NN, Hardcore
Latin Teen Cash
tickler is offline   Reply With Quote
Old 2007-03-28, 07:57 PM   #7
Doug E
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
 
Doug E's Avatar
 
Join Date: Mar 2005
Location: Canadeh
Posts: 197
Quote:
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).
Its for a fussy script that doesn't like blank spaces between tags. Actually, 2 scripts, both unrelated so I assume there are more out there like this.

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...
__________________
Asian Porn | Sora Aoi | Natt Kesarin

Last edited by Doug E; 2007-03-28 at 08:00 PM..
Doug E is offline   Reply With Quote
Old 2007-04-02, 01:25 AM   #8
Whipple
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:
<?php

    $file 
file_get_contents("html.html");
    echo 
htmlentities($file);

?>
Just quick explanation.. file_get_contents() grabs all of the text in "html.html" file into a string (all in one line), next line just spits it out in the format you want. If you want something more elaborate you can look into the following functions:

str_replace()
fopen()
fread()
Whipple is offline   Reply With Quote
Old 2007-04-03, 04:14 AM   #9
oast
With $10,000, we'd be millionaires! We could buy all kinds of useful things like ... love!
 
oast's Avatar
 
Join Date: May 2004
Location: UK
Posts: 316
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.
oast is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:43 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc