Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Code folding; files going between Linux and Windows

    General Discussion
    6
    8
    3326
    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 Harris
      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 Frank 1 Reply Last reply Reply Quote 0
      • dail
        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
        • cmeriaux
          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 Frank
            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 Frank
              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 Foti
                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 Jha
                  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 Jha
                    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
                    Copyright © 2014 NodeBB Forums | Contributors