Match Selection Demo

1
Select something from here.
2
You'll see that the selection's foreground color changes to white!
3
Since, by default, CodeMirror only puts an independent "marker" layer
4
behind the text, you'll need something like this to change its colour.
 

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