Sometimes ASCII art is not enough.
Sometimes an image says more than a thousand words.
This Sublime Text plugin can display images inline to improve your documentation.
Use the ![alt text](uri)
markdown syntax inside a single-line comment.
E. g. in Python you would use
def hello():
# ![](say_hello.png)
print('Hello')
Local images are loaded by default, remote images (https://...) aren't.
You can configure an image's dimensions by adding HTML <img>
properties after the image markup: ![alt text](uri){width="200", height="200"}
. Everything between the {}
will be copied to the <img>
element that renders the image.
I hope that it will be on Package Control soon.
In the meantime, download the latest release. In Sublime, select Preferences->Browse Packages..., then unzip the folder in the archive to that folder. Rename it to Inline-Images
.
Go to Preferences -> Package Settings -> Inline Images
.
Inline Images: Show All Images
Inline Images: Show Remote Images
Inline Images: Show Local Images
Inline Images: Hide Images
Only PNG, JPG and GIF images are supported.
Plugins with similar functionality:
This plugin is based on Markdown Images.