I want to add JavaScripts in JavaDoc

被刻印的时光 ゝ 提交于 2019-12-11 02:58:36

问题


/**
 * <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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!