I wish to know what are the characters CRLF and CR show when we choose for the option show all characters in the notepad. This is very inportant since some other editors show different behavior for this.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I have edited my source code in windows only but its giving for few lines the special character CR and for all other lines its CRLF. Its creating problem since my team mate is working in Linux. If somebody knows whats the issue please help
....
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I wish to know what are the characters CRLF and CR show when we choose for the option show all characters in the notepad. This is very inportant since some other editors show different behavior for this.
What Window's program are you using when you get CR's and normal EOL's? Surely not N++?
It's an easy one time fix (to the file) anyway, but of course it probably shouldn't be happenen.
Yeah, FIX!
Switch to other format in menu (Unix, Mac) and then back again.
This is quite straightforward:
When CRLF is shown, it means Windows EOL's have been used for that file
When only CR is shown, it means Linux/Unix EOL's have been used for that file.
You can, if you wish, change the EOL's of a file in one go:
When the file is open, select "Format | Convert to Windows/Unix/Mac format", whatever you prefer.
You can already see if a file has CRLF or CR only, when you open that "Format" menu.
The EOL's used, are the ones for which the convert item is dimmed in that menu (unless the file has a mix of EOL's...).
Best rgds,
--Geert
Small mistake:
Linux/Unix EOL's are LF, MAC is CR.
Sorry for the confusion...
Best rgds,
--Geert
Perhaps the next question will be: what are EOL's?
Thank You Geert,
Regards,
Ajith
If you want to get technical... :D
CR: Carriage Return
LF: Line Feed
EOL: End Of Line
(...okay, you might already know the first two. Never mind, then. :P )
Hi,
I have edited my source code in windows only but its giving for few lines the special character CR and for all other lines its CRLF. Its creating problem since my team mate is working in Linux. If somebody knows whats the issue please help
....