How do I save fold settings in User Defined Language profile?
-
Everytime I attempt to save a new User Define Language profile, it wipes out my fold settings.
-
@P-A ,
I’ve never seen that happen.
What version of Notepad++ are you using? If v8.9.2, there is a known bug that causes it to crash when entering keywords with too many characters; it might be you’ve found a new symptom of the same or similar bug. Giving an exact sequence of events would allow us to replicate, and to see if the upcoming fix for the crash also fixes your issue.
If it’s with v8.9.1 or older, I’d be very surprised. But again, giving an exact sequence of events would allow us to replicate.
Please share your ? menu’s Debug Info, and the exact steps to replicate your problem.
-
@P-A hasn’t come back since my reply. But I had a few minutes to experiment.
Using the published v8.9.2, I could replicate the problem:
- Open fresh v8.9.2
- Language > User Defined Language > Define your language…
- Folding in code 2 style: open =
openfold, close =closefold - Save as… =
SomethingNew - open disappears, but close remains
- Exit and restart Notepad++
- Language > User Defined Language > Define your language…, choose UserLanguage:
SomethingNew - Folding in code 2 style> open still missing, but close remains
- Add again open =
openfold, and close the UDL dialog: it appears to be there, but repeating 6/7 will show back in condition 8 at this point.
But, when I try the same sequence with the bugfix version from PR#17522, it works as expected (
openfolddoesn’t go missing at all).That PR will be part of v8.9.3 Release Candidate, expected Mar 14. So it looks to me like the bug has already been fixed.