Displaying an image in source code editor

Hi,

I'd like to display an image below a Java class's Javadoc within the source code editor (not within the generated Javadoc itself).

Can anyone tell me what construct would be used to do that? Do I interact with the Editor instace?  Do I have to create a custom Editor?  Something else?

I'm brand new to IntelliJ plugins so I'm not sure what part of the system would be responsible for rendering that image.

Also, if it matters, the image would be sitting in a subdirectory of the project, so a project-relative path would be used to refrence it.

Thanks for the help.

Matt

5
4 comments

This is not possible in the current version of IntelliJ IDEA. The  editor can display only text, and does not support embedding of non-text  things such as an image file.
You can display images on hover, or in popups, or in dialogs, but not within the editor itself.

0
Avatar
Permanently deleted user

Hi,

It would be cool though if it could. E.g. in Rstudio, Markdown documents embeds linked images directly in the editor. It's still plain text but it feels more like richt text. Example:



Best,

Holger

0

I'm also interested in such behavior for my Tmar plugin 

This would considerably improve user experience !

(https://plugins.jetbrains.com/plugin/9925-tmar-plugin)

0

Hello,
Editing images becomes much easier when you can display them directly in a source code editor and later refine them with tools like Lightroom MOD APK for PC. Using emulators such as BlueStacks or NoxPlayer makes it simple to run advanced editing apps on a bigger screen. This way, developers and designers can enjoy both seamless coding visuals and powerful photo editing features without restrictions. It’s a perfect mix for those who want smooth workflow and premium editing tools.

0

Please sign in to leave a comment.