Display Java source code in browser?

I have Java source code in the standard src / lib / test / structure for my project. I want to create a web view of my source code, where I can launch the browser and see the syntax highlighted by the line number. I not only want this, but also want the files to be properly linked (for example, by clicking on the name of the method / class / interface, etc. In the web page view of the code, I will need the "Eclipse style" on the corresponding page). Is there any piece of software that is already doing this? I know that there are tons of js and css syntax highlighting there, so the part is easy, and so I'm more interested in the connecting part.

+7
source share
3 answers

See our Java Source Code Browser . Combines Java source code browsing with JavaDoc-style cross-references. ID hyperlinks fully comply with Java reach rules.

Currently working with Java 1.4, now ending with versions for Java 1.5 and higher.

EDIT May 2012: Handles Java 1.6 and Java 7

+1
source

I think your best bet would be Cobertura . Because of the box, it will generate good HTML versions of your source. As a side benefit, it will also generate a code coverage report .;)

Maven JXR is another option (if you are using Maven).

+1
source

OpenGrok does a lot of what you ask for, as well as for interesting searches.

0
source

All Articles