Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

A Sublime Text plugin that displays inline images for single-line comments formatted like `// ![](example.png)`.

License

Notifications You must be signed in to change notification settings

haferburg/Sublime-Inline-Images

Repository files navigation

I no longer use Sublime Text -> archived

Inline Images

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.

Example

Usage

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.

Installation

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.

image

Configuration

Go to Preferences -> Package Settings -> Inline Images.

Commands

  • Inline Images: Show All Images
  • Inline Images: Show Remote Images
  • Inline Images: Show Local Images
  • Inline Images: Hide Images

Notes

Only PNG, JPG and GIF images are supported.

Related

Plugins with similar functionality:

ImagePreview

Markdown Images

Sublime ZK

Credits

This plugin is based on Markdown Images.

About

A Sublime Text plugin that displays inline images for single-line comments formatted like `// ![](example.png)`.

Resources

License

Stars

Watchers

Forks

Packages

No packages published