Javadoc doclet that includes syntax highlighted source code

Is there a doclet that inserts source code with syntax into javadoc output?

the -linksource parameter http://docs.oracle.com/javase/7/docs/technotes/tools/solaris/javadoc.html#linksource includes a simple text source, but I would like to have the syntax selected source, for example. like the one generated by Opengrok: https://java.net/projects/opengrok/sources/opengrok-git/content/src/org/opensolaris/opengrok/Info.java

+4
source share
1 answer

Doclava ( https://code.google.com/p/doclava/ ) pretty much prints the source code into <pre> blocks.

0
source

Source: https://habr.com/ru/post/1491134/


All Articles