开发者

How to add a hyperlink in a comment in eclipse javadocs

开发者 https://www.devze.com 2023-02-03 09:25 出处:网络
I would like Eclipse to resolve e.g. this hyperlink in a javadoc:开发者_如何转开发 /* * for reference, look here: http://www.google.com

I would like Eclipse to resolve e.g. this hyperlink in a javadoc:开发者_如何转开发

/*
 * for reference, look here: http://www.google.com
 */

The goal would be that the hyperlink is just "clickable" as any normal hyperlink (e.g. as in pdf or doc files).


That is only possible in a JavaDoc comment!

Example:

/**
 * for reference, look here: <a href="http://www.google.com">Google</a>
 */

After generating the Javadoc, you have a normal hyperlink. An other way is to watch in the JavaDoc view of Eclipse!

EDIT: Another way in a normal comment is to press the CTRL and click with the left mouse botton on the link!

0

精彩评论

暂无评论...
验证码 换一张
取 消