Selection doesn't show when newline is included

guttormvik

Member²
When selecting a bunch of lines, you only mark the text.
This means if you mark a bunch of empty lines, the selection doesn't show at all.
It also means it is not possible to see if a selection includes the newline or not.

I prefer the way pl/sql developer does it, ie mark all the way to the right when newline is included. Eclipse does the same.
I see Notepad++ and Sublime Text both just mark the text + add "a bit" to the end when newline is included. Not terrible, but not great either.

Suggestion: In editors that support it (like yours) I always set a light gray background for comments. Works great for visibly separating sections of code.
The only downside is that the right-hand edge can look a bit messy.
I *think* it would be great if the background color stretched all the way to the right here as well.
I don't think any of my current editors does this, so the only example I can think of is from a long gone editor I made 20 years ago..
There, I also had a special case for the end of multiline comments. If it was at the end of the line, I let the comment background run all the way to the right.
Similarly for single-line comments, though you might argue that the NL *is* included in that.
 
Back
Top