Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Images in JavaDoc with IntelliJ IDEA [duplicate]

I'm trying to include images in my JavaDoc. I follow documentation and store an image in the doc-files in the package directory. My javadoc looks like:

/**
 * This is class desctiprion. Image:
 * <p><img src="doc-files/image.png"/></p>
 */

When I generate Javadoc the image is shown but when I try to review Javadoc in the Idea it shows just image stub. How can I manage this?

like image 700
Lampapos Avatar asked Aug 19 '14 11:08

Lampapos


People also ask

How do I create an automatic Javadoc in IntelliJ?

Add a Javadoc using automatic commentsType /** before a declaration and press Enter . The IDE auto-completes the doc comment for you. For information on how to disable this feature, refer to Disable automatic comments.

How do I add Javadoc to a method in IntelliJ?

put the cursor on the method name you want to add javadoc ,and then press alt + enter, there will be an add javadoc option in the popup. If the method already has a javadoc,then there will be no add javadoc option.

How do you use comments in Javadoc?

Writing Javadoc Comments In general, Javadoc comments are any multi-line comments (" /** ... */ ") that are placed before class, field, or method declarations. They must begin with a slash and two stars, and they can include special tags to describe characteristics like method parameters or return values.


1 Answers

It looks like the built-in JavaDoc viewer doesn't do what you want.

There are a few other possibilities, though:

  • I haven't tried it, but there's a JavaDoc viewer plugin at http://plugins.jetbrains.com/plugin/612 - give it a try, and see if it meets your needs.

  • Perhaps you could write a plugin using jetbrains' api?

  • Put in a feature request.

like image 115
GreyBeardedGeek Avatar answered Oct 08 '22 00:10

GreyBeardedGeek