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.
请先登录再写评论。
Filipe,
The documentation provided via this extension point can contain HTML markup - so you can embed <img> elements.
Shouldn't this work then?
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
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/....
Thank you!