Decoration types?


Hi, I am trying to create a Display Marker and make it look like a cursor. However, I don’t know what “type” in the Decoration will make it show up as a line between letters or selection.

Can anyone help with this?



The type doesn’t affect how it appears … only where it appears. You have to use CSS to determine how it looks. But either highlight or overlay should work for the purpose you describe.


Thanks. I’ve had trouble with highlight, but i’ll try overlay now :slight_smile: