option to enable explicit comment folding for c++ like languages
This pull request adds the option to enable explicit comment folding for c++ like languages mentioned in issue #12337.
I‘ve never seen a C++ IDE do this. Is this something common or a special feature?
It is an option the ScintillaComponent has (fold.cpp.comment.explicit). I tend to think of it as a special feature.
In previous versions of Notepad++ this option was enabled by default. Because of issue #4560 it was turned off (see pull request #10948).
I used it a lot, because it was a convenient way to fold larger blocks of code. So it would be nice to be able to turn it back on again. Because of the issue it is off by default.
I am not the only one using this feature (https://stackoverflow.com/a/16472818).
Sorry, did not intend to give the impression that this is a "most wanted" feature.
May I ask, if there is another way to do region folding?
@niekma You can use plugin like NppExec or PythonScript to get the same effect (and not wait for the decisions made here).
@ArkadiuszMichalski I tried NppExec. The script is working, but I have to run it manually, because the setting is overwritten. I also tries NppEventExec. It is possible to set it up, but as you described in #12213 it would be nice, if it would work out of the box. Thank you for your suggestions.
https://github.com/notepad-plus-plus/notepad-plus-plus/pull/12338#pullrequestreview-1143339187