gpt4 book ai didi

java - 如何让 IntelliJ 打破

上的 javadoc 行

转载 作者:行者123 更新时间:2023-11-30 03:21:38 25 4
gpt4 key购买 nike

我正在使用</p>用于在 Javadoc 中换行的标记。这既过时又在 Elcipse 中工作。不幸的是,它在 IntelliJ 中不起作用:

enter image description here

如您所见,“to javadoc”和“This is it”之间没有换行。

同时,Eclipse 工作正常:

enter image description here

代码如下(不考虑图像路径——它来自其他测试):

package tests.helloworld;

/**
* This is try to javadoc</p>
* This is it
* <img src="/myimage.jpg">
*/
public class Runner {
public static void main(String[] args) {
System.out.println("Hello world");
}
}

更新

当然生成的javadoc在浏览器中是可以的:

enter image description here

最佳答案

同时<p> [...] </p>格式可能更简洁/易于理解,如果您只是想要换行,可以使用 <br> :

/**
* This is try to javadoc<br>
* This is it
* <img src="/myimage.jpg">
*/

示例: screenshot example

关于java - 如何让 IntelliJ 打破 </p> 上的 javadoc 行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31189226/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com