Sublime Forum

Image in Output Panel

#1

I’m working on a plugin to retrieve problem content from Sphere Online Judge and display it on a output panel for coding and analyzing the problem at the same time.

Some problems on Sphere Online Judge have images embedded in them and I am facing problems on how to display the image in the panel.

My current panel code is:

self.output_view = self.window.get_output_panel("textarea")
self.window.run_command("show_panel", {"panel": "output.textarea"})
self.output_view.set_read_only(False)
self.output_view.run_command("append", {"characters": msg})
self.output_view.set_read_only(True)

How do I display an Image in the panel?

0 Likes

#2

Can this be done? I would like to know too. Writing a plugin and desperately need it. Just to be able to show image as preview in output panel would be great, but it would be really awesome if we could “paint” it on certain coordinates in output panel. :smile:

0 Likes