问题
/**
* <div class="en">Documentation in English</div>
* <div class="nl">Documentatie in Nederlands</div>
*/
public void myFunction() {}
Subsequently edit the CSS of the JavaDocs so that the user can switch languages, e.g.:
div.en { display:none; }
div.nl { display:block; }
How to add javascripts in JavaDoc?
回答1:
- You might be able to do it with the
javadoc -header
option. - You definitely can do it by subclassing the doclet and modifying its behavior. Start at the Sun Javadoc Technology page.
来源:https://stackoverflow.com/questions/1483141/i-want-to-add-javascripts-in-javadoc