I was recently editing a config file from template that was cca. 1000 lines long and after I was done editing it, 99% of the lines were not relevant anymore and stayed commented out – either because they were comments, or because they were unused settings.
I know I could just delete all those lines, but there is a lot of interesting info there, and since this is in /etc/
an update will likely introduce a new version of the template, so keeping the old one as intact as possible, has its merits.
So I was wondering, is it – and if so how – possible in Kate/Kwrite to fold or hide all comments in a file?