I am using an Ace editor to display code on a website. I would like to be able to highlight ranges of code and display an error message when they are hovered over, as shown in the picture.

I'm not sure if this can be done using the Ace editor API, or if I need to use the magic of jQuery.
There isn't ready to use api for this.
Tooltip can be added similar to token_tooltip in ace, but it needs some reworking, to add an arrow and not move with the mouse.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With