Code folding; files going between Linux and Windows
-
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 -
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?
-
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. -
-
a nicer screenshot is here http://i.imgur.com/RsgkQ1f.png
Cheers
Claudia -
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 -
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 ?
-
With reference to previous post, please see screenshot here: