CodeMirror 6 selection draw in empty spaces

Using Draw Selection:

Native Selection:

Is it possible make it do not draw on empty spaces? Just look like browser native selection?

No, that’s not something drawSelection supports. You’d have to implement your own selection drawing (or just use the native selection).

1 Like