I am tried to highlight the select text in codemirror6, this is what I tried like this:
EditorView.theme({
"&": { height: "100%" },
'.cm-content': {
fontSize: '16px'
},
'.cm-selectionMatch': {
backgroundColor: "#A3BE8C"
},
'.cm-scroller': {
},
})
this code hightlight all the matched word except the select. what should I do to make it highlight the select? Am I missing something?
th rectangle area is what I selected.