Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Thank You for such a great solution
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Apr 9, 2014 - 5:59 pm

This depends upon what editor was used to last edit the file - what line endings are being used and what editor is used to open it again.

For example - Steve uses a php IDE running on Windows which will automatically end the lines with the standard windows line endings. My OSX editor will automatically end my lines using the standard Mac line endings. But because we both use serious editors they both recognise the endings being used and show the formatted code as it should be shown.

Now - not being a Windows user I can not swear to this - but I believe that Windows Notepad ONLY recognises Windows line endings. That is because it is not a code editor and not even a serious text editor. So load up a file last edited under OSX (i.e., one of mine) and Notepad will not display it properly.

I think you need to be careful of the old WordPad as (again I may be wrong here) I think it can embed control character formatting that will cause program code to just crash.

But I think Notepad++ does the job properly.

Steve? Brandon? Anyone? Is that about right?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 9, 2014 - 9:02 pm

dont touch notepage or wordpad...  low end sw... ;)

but yes, at least notepad incorrectly handles cr/lf... or rather forces the wrong one in this case...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625