Proper way (or example code) on how to hightlight a line(s) of text in an editor window
Answered
I have the need to highlight and provide a tooltip for code open in an Editor pane. I am successfully opening the file I need to highlight in an editor tab and have the following data:
- Start line
- End line
- Startoffset
- Endoffset
I've looked through several examples in these forums, but can't seem to get it working correctly. Any help or additional links are appreciated.
Please sign in to leave a comment.
While not exactly what I was looking to do, this is meeting my current need.
In this code:
This is giving me a highlighted line of code, with a gutter line that holds the TOOLTIP_MESSAGE.
See com.intellij.codeHighlighting.TextEditorHighlightingPass and inheritors