In `Edit=>Preferences=>Editor.Features`, I added a checkbox "Comment Blank Line(s)" for issue #2239.
When this option is turned on and when commenting (`Edit=>Format=>Comment Line(s)`) or toggling comments (`Ctrl+E`), blank (empty) line(s) will also be commented.
For example, if you comment this code...
```Ruby puts <<EOD
EOD ```
..., it will do this:
```Ruby # puts <<EOD # # EOD ```
It should work for Comment, Uncomment, and Toggle. By default, it is off/false.
If this merge is accepted, `doc/geany.html` and the screenshot in this HTML file will need to be updated.
![features](https://user-images.githubusercontent.com/16524392/76850364-3310d600-6882-11...) You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/2452
-- Commit Summary --
* Add "Comment Blank Line(s)" option
-- File Changes --
M data/geany.glade (20) M doc/geany.txt (11) M src/callbacks.c (2) M src/editor.c (2) M src/editor.h (1) M src/keyfile.c (2) M src/prefs.c (6)
-- Patch Links --
https://github.com/geany/geany/pull/2452.patch https://github.com/geany/geany/pull/2452.diff
It's been 4 years. Closing my pull request.
Closed #2452.
It probably simply got overlooked and forgotten, would have been better to prompt (probably sooner than 4 years ;-) not close.
No worries, not needed. Wasn't angry, just commenting reason for closure. Just cleaning up my old PRs/Issues.
github-comments@lists.geany.org