I've been using Notepad++ for some time and LOVE it.
It seems like the answer to this problem must be obvious, but I have searched like crazy through this forum and elsewhere and cannot find an answer that applies:
I'm editing both PHP and XML files, pulled either by FileZilla or the internal Notepad++ FTP function.
Initially, the files transfer and display legibly, with all line breaks and indentures in place. And many times I can edit, save and reopen without any issues.
Other times, however, after some number of edits a file (either PHP or XML) begins to reopen with all the content on a single line. Turning on word wrap simply results in one long illegible line with word wrap. Once the file opens this way it seems to be "stuck" that way.
I'm not changing anything about the way I open or save from one file or session to the next. I've tried converting to different formats etc., to no avail.
Many thanks to anyone who can help me solve this small mystery of the universe.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you Harry. I actually tried that but until your message, I did not realize that it wouldn't restore the view of previously saved files (rookie mistake on my part).
Unfortunately I had tweaked the code so would hate to revert. Do you have a suggestion for a
reasonable easy way to fix a corrupted file?
Again, many thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Usually happens if the FTP transfer is ASCII instead of binary. Try setting all your FTP clients to binary (refer to the manual, FTP_s has a special Transfers tab in the settings, but defaults to binary) and see if this resolves your problem (already corrupted files wotn be repaired btw, you ahve to fix them yourself or grab a backup).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've been using Notepad++ for some time and LOVE it.
It seems like the answer to this problem must be obvious, but I have searched like crazy through this forum and elsewhere and cannot find an answer that applies:
I'm editing both PHP and XML files, pulled either by FileZilla or the internal Notepad++ FTP function.
Initially, the files transfer and display legibly, with all line breaks and indentures in place. And many times I can edit, save and reopen without any issues.
Other times, however, after some number of edits a file (either PHP or XML) begins to reopen with all the content on a single line. Turning on word wrap simply results in one long illegible line with word wrap. Once the file opens this way it seems to be "stuck" that way.
I'm not changing anything about the way I open or save from one file or session to the next. I've tried converting to different formats etc., to no avail.
Many thanks to anyone who can help me solve this small mystery of the universe.
Thank you Harry. I actually tried that but until your message, I did not realize that it wouldn't restore the view of previously saved files (rookie mistake on my part).
Unfortunately I had tweaked the code so would hate to revert. Do you have a suggestion for a
reasonable easy way to fix a corrupted file?
Again, many thanks.
Usually happens if the FTP transfer is ASCII instead of binary. Try setting all your FTP clients to binary (refer to the manual, FTP_s has a special Transfers tab in the settings, but defaults to binary) and see if this resolves your problem (already corrupted files wotn be repaired btw, you ahve to fix them yourself or grab a backup).