Community
    • Login

    Code folding; files going between Linux and Windows

    Scheduled Pinned Locked Moved General Discussion
    8 Posts 6 Posters 3.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Graham HarrisG
      Graham Harris
      last edited by

      My primary development platform is Linux, and the deployment target is Arduino (or at least a microcontroller using the Arduino IDE/libraries).

      I haven’t completely characterised the problem but this is the symptom I see, In NotePad++ (6.9.2 I think) on Windows 7 :

      it folds at the line where it is placed, rather than the line where it should be placed (ie where the { is).

      I suspect that this is due to the different line endings between Windows (cr+lf) and unix/Linux (lf)

      Anyone got a quick fix, or a solution?

      Best
      Graham

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • dailD
        dail
        last edited by

        Code folding should work fine no matter what the line endings are set to (assuming you aren’t mixing line endings in a file). Are you using a built in langauge (e.g. C) or a custom UDL?

        1 Reply Last reply Reply Quote 0
        • cmeriauxC
          cmeriaux
          last edited by

          If you have any doubt on line ending, use the option view/show symbols/show line ending to check your file content.

          What about an encoding problem ? (utf-8 or whatever)
          Try a dos2unix command or unix2dos.

          1 Reply Last reply Reply Quote 0
          • Claudia FrankC
            Claudia Frank @Graham Harris
            last edited by

            @Graham-Harris

            seems to work for me.
            Npp on ubuntu (chaletos).

            Alt text

            Cheers
            Claudia

            1 Reply Last reply Reply Quote 0
            • Claudia FrankC
              Claudia Frank
              last edited by

              a nicer screenshot is here http://i.imgur.com/RsgkQ1f.png

              Cheers
              Claudia

              1 Reply Last reply Reply Quote 0
              • Tullio FotiT
                Tullio Foti
                last edited by

                I have this problem only with the combination of UDL and Unix line ending (LF) with NP++ 6.92 in Windows 7.
                The folding works fine when the text, with same UDL, is converted to Windows line ending (CR+LF).
                I think that it may be a bug.
                Bye
                Tullio

                1 Reply Last reply Reply Quote 0
                • Rahul JhaR
                  Rahul Jha
                  last edited by

                  I am having same problem with SAS UDL on Npp 7.7.1 32 bit version on Windows 10 machine.

                  Any chance of fixing it ?

                  1 Reply Last reply Reply Quote 0
                  • Rahul JhaR
                    Rahul Jha
                    last edited by

                    With reference to previous post, please see screenshot here:

                    https://imgur.com/a/aaky5Rx

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    The Community of users of the Notepad++ text editor.
                    Powered by NodeBB | Contributors