This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When converting a Java source file to HTML using "File" -> "Print to HTML", only the token-based syntax highlighting (keywords, comments etc.) is rendered. Grammar-based highlighting (method names, type names etc.) is not rendered.
This is currently unsupported. We will try to come up with something in next release, but it is very hard to implement in current infrastructure.