Add custom tooltip/popup msg to the highlighted text

is it possible to add a tooltip for all the highlighted text?
in my case, when users click the validation button, the textarea will highlight all errors based on the value of line numbers that I feed to codemirror js. However, I would like also to add a small popup or tooltip for the highlighted text. All the context of the tooltip/popup will be provided by myself. Any idea?

Take a look at the tooltip example.