Results 1 to 3 of 3
May 20, 2002, 13:37 #1
What should I use? CR LF, CR, or LF
Today I was looking through my Dreamweaver settings and noticed these things in the Prefernces for Line Breaks:
CR LF = Windows
CR = Macintosh
LF = UNIX
By default, if you use the Windows version of Dreamweaver/UltraDev, it sets your line breaks to CR LF and if you use the Mac OS9/OSX version of it, it sets it to CR.
In my development enviroment, we have people here who use both Mac and PC versions of Dreamweaver for HTML and PHP coding. I am just curious.. which one is the preferred Line Break method?
The reason I ask this is because if I open up a web page created by the Mac version of Dreamweaver (or any text doc) with Notepad I get these block characters in my text. I am not sure if it can affect the way PHP acts in reading the code, but I want to be 100% sure that its safe.
I mean.. I can set my Line Breaks to CR (Macintosh) in my Windows version of Dreamweaver and I may or may not set it to that to maintain compatiablity with the Mac people.
Any suggestions? Thanks!
May 20, 2002, 14:31 #2
- Join Date
- Apr 2002
- Salford / Manchester / UK
- 0 Post(s)
- 0 Thread(s)
my thought on this would be that it should be what's native to the server you're developing for. failing that, i'm fond of the unix convention (force of habit i guess).
as far as opening with text application goes, i always keep PFE handy. i hear its development is now discontinued (crying shame) but it's really handy and can convert from dos/unix linebreaks in a click. not sure how it deals with mac files...
May 20, 2002, 14:49 #3
Well, all my servers are FreeBSD, but one of the things I always worry about is the fellow Mac guy is programming on OS X and he sometimes uses TextEdit for the coding. I know that works for Windows and Mac files, but not 100% sure how it would handle the LF encoded ones.
CR and LF look the same (placement of the blocks and so on) in Notepad, but don't want to take any chances.