Categories
Horror Stories

Coding on Windows Machine for a Linux Server Mistakes: Linebreaks

Recently had a Coding Nightmare, Linebreaks make a difference…

Windows uses the CRLF (Carriage Return line Feed) represented as /r/n

While linux uses LF (Line Feed) represented as /n

Why the hell has no one mentioned this to me before….

Check the following Coding Horror to prevent these incidents from happening again…

 

You can see line endings in Notepad++ with:

View->Show Characters->All

and you might want to get sublimetext add-ons:

and

 

If you are running git projects check out: