@PeterJones said in Break a string by delete paired quote will unfold folded codes in some language highlight:
@byzod said in Break a string by delete paired quote will unfold folded codes in some language highlight:
What cause this difference?
Every built-in language references a specific Lexer, and each Lexer is coded separately (and often by different people).
And UDL is a separate lexer from every built-in language.
How can I improve the UDL to act like Javascript highlighting?
You cannot. The behavior of the folding for each language is compiled into the program, and cannot be affected by the end user.
You could, in theory, report the bug to the Notepad++ developer (see our FAQ on reporting bugs), but UDL bugs almost never get fixed, and there have been some long-standing ones reported years ago that are still open (and much more annoying that just unfolding a block when you type near the block). Sorry to be the bearer of bad news.
Glad to found out why though
btw I found a workaound fortunately: enable the auto pairs for () [] {} "" etc, then it won’t trigger this bug, mostly. Sometimes still bomb all codes out but it improves the experience a lot already