Page 1 of 1
help notepad++ and ws_ftp went stupid
Posted: Thu Apr 19, 2007 7:13 pm
by pinehead18
Ok, so i re-downloaded my functions file (600 lines of code) and its all bunched up into 5 lines. with a long horizontal bar.
How do i fix this? I tried to re download it as ascii and binary (i know its in one of the two and needs to be in the other) but it does not fix it.
Suggestions?
Posted: Thu Apr 19, 2007 7:17 pm
by jayshields
So it's basically stripped your line breaks? Weird.
Google directed me to this:
http://www.2072productions.com/?to=phpindent.txt
Posted: Thu Apr 19, 2007 7:18 pm
by bdlang
The script came from a UNIX system and was edited on Windows? Does your editor support UNIX line breaks?
Posted: Thu Apr 19, 2007 7:24 pm
by jayshields
bdlang wrote:The script came from a UNIX system and was edited on Windows? Does your editor support UNIX line breaks?
Huh?
I don't really understand you, but looking into it, the script I pointed you to won't help you, and I don't know of an editor that will tidy an already written PHP script. I'm sure you'll be able to find one if you look around enough though.
Posted: Thu Apr 19, 2007 7:27 pm
by bdlang
Huh Huh?

Posted: Thu Apr 19, 2007 7:31 pm
by pinehead18
well i wrote it with notepad++ based in windows.
then i used ws_ftp to upload the file.
Then i re-downloaded the file and now its all bunched up and all my spaces and enter's are gone.
Posted: Fri Apr 20, 2007 10:06 am
by guitarlvr
are the line breaks there if you open the file in wordpad?
Wayne