Menu

All text on one line

2007-12-29
2012-11-13
  • Nobody/Anonymous

    Hi...  I hope this is an easy one for somebody.  I have an HTML file that also has PHP inline and has the extension of .PHP, so I guess that would make it a PHP file.  After creating and editing, I upload the file to my webserver.  Everything looks great.  Later if I want to edit the file that I uploaded, I use Filezilla to download the copy and open it up in NP++.  All the text (HTML & PHP) are on one loooooong line.  I turn on word wrap and it does wrap, but all the indenting and formatting that I do personally to make my code easier to read is gone. 

    Is this because the file has gone through some conversion when uploading to the webserver?  If so, what's the solution?  I would like to be able to keep my formatting so I can read the code easier when I need to grab a copy from the server.

    Thanks!
    JR

     
    • Nobody/Anonymous

      FTP has an ASCII transfer option which alters the newlines, so this may be your probleme (especially if the file is written in Unicode). See if you can turn on Binary transfers (there is also a FTP plugin for Notepad++ btw).