-
Notifications
You must be signed in to change notification settings - Fork 914
Description
Apache NetBeans version
Apache NetBeans 28
What happened
The javadoc viewer in the editor shows HTML comments contained within the javadoc comment, although such HTML comments aren't visible in generated API docs (HTML files viewed in a regular HTML viewer or browser).
Language / Project Type / NetBeans Component
Javadoc
How to reproduce
Create a Java class with a javadoc comment containing an HTML comment like <!--some comment -->. Invoke the javadoc viewer for the class (e.g. Ctrl+Shift+Space).
Did this work correctly in an earlier version?
No / Don't know
Operating System
Windows
JDK
21
Apache NetBeans packaging
Apache NetBeans binary zip
Anything else
This is inconvenient when using the javadoc viewer to assess how the javadoc one is writing will appear in an HTML viewer. For example, I'm using HTML markup within a <pre> element, and use HTML comments to align the text content in the source (to compensate for different markup on different lines) the same as it would appear in the rendered output. However, the javadoc viewer destroys that alignment by showing the HTML comments.
Are you willing to submit a pull request?
No
