Displaying img when hovering class

已回答

Is it possible to display an image when hovering a class name? Currently, I've implemented DocumentationProvider to display a custom-made text. However, I was wondering if I could also add an image there.

0

Filipe,

The documentation provided via this extension point can contain HTML markup - so you can embed <img> elements.

0

Shouldn't this work then?

0

Jakub Chrzanowski I tried with a local image just to make sure that wasn't the problem, and now I get a broken image icon:

With this:

Getting this:

 

What am I doing wrong?

Thank you in advance

0

The img src has to be a URI. On windows try using file:/C:/Users/filip/..., on OS X and Linux it would be: file:///usr/....

2

请先登录再写评论。