Embed Image in Code Comments via Emacs

The idea just occurred to me. Are there any methods for inserting an image into code to help explain our code? After all, a picture is worth a thousand words.

Since I use Emacs, are there any implementations of Emacs so far?

+5
source share
3 answers

Take a look iimage-mode: this is the standard solution for displaying images in a text buffer.

For example, given the following file:

/* an image is worth a thousand words:
 * <path/to/image.png>
 */
int main (int argc, char **argv) {
  return 0;
}

then the launch M-x turn-on-iimage-modeshould display image.pnginstead of its path.


, @user4815162342, ( , , )

+6

ASCII- ?

ASCII M-x artist-mode, ( ) . , UML ASCII, CEDET .

, create-image insert-image, . .

+2

If you want to insert online images, cacoo.el will be very useful. It caches online images and resizes them. Thus, the display of the image from the second time is very fast. It also works with local images.

It was first developed for the cacco web service , but it works for any online images.

0
source

All Articles