Reputation: 60923
In Java
I often use <br/>
(or another html tag) in commend like this to make comment easy to read
/**
* Line 1 <br/>
* Line 2
*/
In Kotlin, I write comment like this but it not working ("Line 2" don't break to new line). Is there any way to achieve it (any Settings or Plugin)?
Upvotes: 3
Views: 1047
Reputation: 18112
Kotlin docs doesn't support HTML tag but Markdown syntax. As per it
When you do want to insert
<br />
break tag using Markdown, you end a line with two or more spaces, then type return.
See more information at https://daringfireball.net/projects/markdown/syntax#p and https://kotlinlang.org/docs/reference/kotlin-doc.html#kdoc-syntax
Upvotes: 6