Proper line-ending for an open-source PHP project

Posted by Mahdi on Super User See other posts from Super User or by Mahdi
Published on 2012-12-05T08:52:38Z Indexed on 2012/12/06 17:08 UTC
Read the original article Hit count: 287

Filed under:
|
|
|

What is the proper line-ending preferences for an open-source web project? Obviously it includes source code of PHP, HTML, CSS and Javascript.

The source code is managing via Github now, and there are Windows (8 & 7), Linux (Ubuntu) and OSX developers inside the team, which means all the major operating systems.

P.S. We are using "Windows" CRLF line-ending, plus "UTF-8 without BOM" right now, without facing any problem, however I think it might be better to use "*nix/OSX" LF style. I heard some stories about the problems that caused by the additional "CR" on Linux or OS X.

© Super User or respective owner

Related posts about Windows

Related posts about linux