I have a unique problem where no endline's are saved to my javascript and php files after editing them.
I have downloaded my websites javascript and php files using ftp so I can edit them. I have edited them in Notepad++ then reuploaded them. And everything broke because all the new code I added have no endlines in them, just one long line, so some lines have a comment in them and it is causing syntax errors.
What could cause such a weird problem?
Important Informatiom:
- The existing code in the edited files have correct endlines/formatting. Its just the new code/text that is added.
- Each of the files are UTF8 encoded without a BOM. I didn't set this encoding, thats how they came from filezilla.
- I am on Windows 8.1
- Inside Notepad++ the file looks fine, with endlines and correct formatting. When I view the files in Chrome's source browser (for eg; the javascript file) it shows that all the new code is on one line without any newlines (the original code has all its newlines weirdly).
- If i search the editted files for the character /n in Notepad++ it only finds endline chars on the existing code lines but not on my new code, even though that new code is shown on different lines. Such a weird problem.