@aldo ,
In many of the builtin lexers, comment blocks or multiple sequential comment-lines already do have a “fold” button to the left, which can be used for hiding the comments.
1755d37f-efd6-4e22-82eb-8c242287e5e4-image.png
3b87fdb6-b1fe-4079-be97-2f84832bdb4c-image.png
For User Defined Languages (UDL), it will only fold the comments if you check on the “Allow folding of comments” checkbox:
3885d555-5c27-4e06-8978-40e43bfe94b5-image.png
85d64c2e-457a-479a-9f53-0230754a3b47-image.png