Ace.js showing content when mouse pointer or marker is clicked

With this code, I add markers to the ace instance

var Range = ace.require("ace/range").Range
var range = new Range(link.start.Line, link.start.Column, link.end.Line, link.end.Column);
var marker = $scope.editor.getSession().addMarker(range, "ace-related-code-highlight", "text");


Now I want the user to show the content when they hover over or click on it. I cannot figure out the correct api. Can I attach eventhandreR?

Any hints are appreciated


source to share

All Articles