Adding visuals onto editor


Hey I'm making a plugin in IntelliJ and I want it to show something on screen on the editor directly, I need to either:
A. Draw a rectangle on screen at specific coordinates (or line, row would be even better).
B. Import image of rectangle and choose where to display it on screen.

If any of these options are possible (or if you have another solution) please share it with me!

1 comment

Hi Ronbood04,

I understand you want to mark some parts of the code. Drawing in the editor can be problematic and I suggest taking a look at RangeHighlighter and related classes as mentioned here:


Please sign in to leave a comment.