multi-part keywords folding doesn't work in other languages
-
As you can see in this example open and close keywords cannot be found if they are written in other language and in quotation marks

Without quotation marks works just fine

And in english too

Maybe it’s encoding problem but i’m not shure -
I’m curious if this was intended or not.
P.S. sorry for bad English. -
Unfortunately, the bulk of the User Defined Language (UDL) system was built without encoding in mind, so many of the entries – including the code-folding – don’t properly handle non-ASCII characters.
There are, unfortunately, many open issues regarding UDL. And at least a half-dozen that I could find that were about UDL’s inadequacies with respect to non-ASCII characters:
- https://github.com/notepad-plus-plus/notepad-plus-plus/issues/8562
- https://github.com/notepad-plus-plus/notepad-plus-plus/issues/8399
- https://github.com/notepad-plus-plus/notepad-plus-plus/issues/6197
- https://github.com/notepad-plus-plus/notepad-plus-plus/issues/6014
- https://github.com/notepad-plus-plus/notepad-plus-plus/issues/4742
- https://github.com/notepad-plus-plus/notepad-plus-plus/issues/4688
Maybe if more people would upvote those, and provide more examples that it’s still not working, the developers would prioritize UDL fixes.
If you are willing to install a plugin like PythonScript, it’s likely possible to script a solution – I believe that it’s possible to affect code folding from a scripting plugin, similar to the way that @Ekopalypse used regex to enhance any lexer (UDL or builtin), but I’ve never played around with that, and don’t have as much time for PythonScript hacking as I used to. If you give it a go, but get stuck, show us what you have, and we can likely provide advice; or, if it catches someone’s interest, there may be someone here with the time to give it a go and get you to a good head start.
Sorry I don’t have better news, or a fully-functional workaround, for you.
-
@PeterJones thanks for the explanation. Maybe I’ll try to fix this myself, but I dont feel confident.
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