Adding a Highlight to a single character by Position

I’ve been trying to figure out how to add a highlight to a single character at a position (“line”:x, “ch”:x). I’ve tried using addOverlay but it seems overkill for this, and the line number is very hard to ascertain in the stream. I’ve gotten it to somewhat work by using addOverlay and some kludge code, but this is likely to break with an update.

There must be an easier way to do this. What am I missing?

Sounds like a job for markText!

Awesome! That’s what I was looking for. Just started a project using CodeMirror and loving it so far. Cheers.