[Github-comments] [geany/geany] [Question] How to make blank newlines also commented with Ctrl+E? (#2239)

Jonathan Bradley Whited notifications at xxxxx
Fri Aug 2 09:30:19 UTC 2019


For example, take this Ruby code:

```Ruby
(0..9).each do |i|
  puts i
  
  puts '-' if (i % 3) == 0
end
```

If you do Ctrl+E, it will produce this:

```Ruby
#(0..9).each do |i|
#  puts i
  
#  puts '-' if (i % 3) == 0
#end
```

But, I'd like it to produce this:

```Ruby
#(0..9).each do |i|
#  puts i
#  
#  puts '-' if (i % 3) == 0
#end
```

You can imagine that code with many blank newlines makes it hard to distinguish if the whole block is commented, or just sections.

Is there a setting for this?

I think this is useful for usually-single-line-commented languages, like Ruby/Python, especially if your settings don't strip spaces on newline.

Thanks.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2239
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20190802/2c81fc1d/attachment.html>


More information about the Github-comments mailing list