Selection Marking Demo

x
 
1
Select something from here. You'll see that the selection's foreground
2
color changes to white! Since, by default, CodeMirror only puts an
3
independent "marker" layer behind the text, you'll need something like
4
this to change its colour.
5
6
Also notice that turning this addon on (with the default style) allows
7
you to safely give text a background color without screwing up the
8
visibility of the selection.

Simple addon to easily mark (and style) selected text. Docs.