Forum Moderators: open
But all the line breaks are squares .. and I can't find anything. It's a mess.
If I copy / paste into word pad, it's all organised neatly and easy to read, but if Wordpad touches the thing ( and that includes editing in wordpad then pasting into notepad ) then it stops working.
The author obviously could use line breaks, because when viewed in wordpad everything is neatly organised.
I don't understand.
[vim.org...]
The code that appears garbled with rectangular boxes has each line terminated by carriage returns (CR) instead of carriage return and line feed pairs (CRLF) or just line feeds (LF). If you use an editor like Notepad that does not recognize carriage returns as line terminators, all your lines will run into each other.
A Note on Windows Notepad: If you are writing your scripts using Windows Notepad, you will need to ensure that your files are saved with the extension you desire. (Notepad adds a .txt extension to files automatically unless you take one of the following steps to prevent it.) When you save the file and are prompted to provide a name for the file, place the filename in quotes (i.e. "hello.cgi"). Alternately, you can click on the 'Text Documents' drop-down menu in the save dialog box and change the setting to "All Files". You can then enter your filename without quotes.
I also find that if I transfer files from the server to my desktop using binary mode rather than ASCII, I can open, edit, save and transfer the file using Wordpad successfully. Binary mode preserves the CR/LF correctly.