Adding visuals onto editor
Answered
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!
Please sign in to leave a 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:
https://intellij-support.jetbrains.com/hc/en-us/community/posts/206394699-Draw-shapes-in-Editor