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:
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login