Menu

carriage return problem

2008-03-07
2012-11-13
  • Nobody/Anonymous

    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.

     
    • Nobody/Anonymous

      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.

       
      • Nobody/Anonymous

        Yeah, FIX!

        Switch to other format in menu (Unix, Mac) and then back again.

         
    • GVC

      GVC - 2008-03-07

      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

       
      • GVC

        GVC - 2008-03-07

        Small mistake:

        Linux/Unix EOL's are LF, MAC is CR.

        Sorry for the confusion...

        Best rgds,

        --Geert

         
      • Nobody/Anonymous

        Perhaps the next question will be: what are EOL's?

         
    • Nobody/Anonymous

      Thank You Geert,

      Regards,
      Ajith

       
    • Haibara

      Haibara - 2008-03-07

      If you want to get technical...  :D

      CR: Carriage Return
      LF: Line Feed
      EOL: End Of Line

       
    • Haibara

      Haibara - 2008-03-07

      (...okay, you might already know the first two.  Never mind, then.  :P )

       
    • Nobody/Anonymous

      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

      ....