help notepad++ and ws_ftp went stupid

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
pinehead18
Forum Contributor
Posts: 329
Joined: Thu Jul 31, 2003 9:20 pm

help notepad++ and ws_ftp went stupid

Post 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?
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Post by jayshields »

So it's basically stripped your line breaks? Weird.

Google directed me to this: http://www.2072productions.com/?to=phpindent.txt
bdlang
Forum Contributor
Posts: 395
Joined: Tue May 16, 2006 8:46 pm
Location: Ventura, CA US

Post by bdlang »

The script came from a UNIX system and was edited on Windows? Does your editor support UNIX line breaks?
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Post 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.
bdlang
Forum Contributor
Posts: 395
Joined: Tue May 16, 2006 8:46 pm
Location: Ventura, CA US

Post by bdlang »

Huh Huh? :)
pinehead18
Forum Contributor
Posts: 329
Joined: Thu Jul 31, 2003 9:20 pm

Post 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.
User avatar
guitarlvr
Forum Contributor
Posts: 245
Joined: Wed Mar 21, 2007 10:35 pm

Post by guitarlvr »

are the line breaks there if you open the file in wordpad?

Wayne
Post Reply