Set a LineMarker

Hi Community,

I found a tutorial about Line Maker Provider, but I want to put a Line Marker at a precise Position by clicking. Like IntelliJ does it 4 example with bookmarks.
How can I implement that?

Comment actions Permalink

You need to add a RangeHighlighter directly to the markup model of the underlying document. See Bookmark.createHighligher() for the code that sets up such a range highlighter:

Here's the code which creates a bookmark when the editor gutter is clicked:

Comment actions Permalink

thank you
:) exactly what I was looking for!


Please sign in to leave a comment.