Is it possible to have widgets that don't take up a full line in Code Mirror?

Hi There,

The LightTable editor had this feature that allowed current variable values to be gleaned from past computations inline to where the variable appeared. Are these kinds of editor highlights are possible using CodeMirror or are widgets only limited to taking up a full line?


Yes, you want setBookmark (or markText if the widget covers text).

1 Like