Notepad ++ inserts blank line between each line of code when downloading file from filezilla

I want to download php files from my server using Filezilla so that they can be backed up and backed up on my computer. So before making any code changes, I'm sure I will have the latest version used to work. When you're tired at night, it's too easy to overwrite an existing file.

But when I upload the files, they open in Notepad ++ with a blank line between each line of code. It is no longer readable and it is 800 lines of 1600 pages! Deleting each blank line in turn makes you confused.

Is there a quick way to remove blank lines or a way to avoid it?

thank

+3


source to share


3 answers


I had the same problem. Change the file transfer file type setting of filezilla to binary and it will no longer give blank lines.

Here's how to do it:



Go to Edit

> Settings

> Transfers

>File Types

Here you can select a gear Binary

.

+8


source


You may have this problem because you read the file as a UNIX file when it was created by Windows.



If your server is a UNIX system, you must use a replacement. Place \r

as search, leave replacement blank and select advanced exploration.

0


source


Thank. I found out the simplest way to do it.

Just DO NOT right click EDIT on the remote file

(if your files are set to open automatically with Notepad ++, a blank line will be inserted after each line of code)

Instead of this:

  • Create a copy folder of your pubic_html on your HD
  • Transfer a copy of all your files to this folder using Filezilla.
  • → → The backup will be done in seconds and all php files will open fine in Notepad ++
0


source







All Articles