我想在JavaDoc中添加JavaScript [英] I want to add JavaScripts in JavaDoc
本文介绍了我想在JavaDoc中添加JavaScript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
/**
* <div class="en">Documentation in English</div>
* <div class="nl">Documentatie in Nederlands</div>
*/
public void myFunction() {}
随后编辑JavaDocs的CSS,以便用户可以切换语言,例如:
Subsequently edit the CSS of the JavaDocs so that the user can switch languages, e.g.:
div.en { display:none; }
div.nl { display:block; }
如何在JavaDoc中添加JavaScript?
How to add javascripts in JavaDoc?
推荐答案
- 您可以使用
javadoc -header
选项来做到这一点. - 您绝对可以通过将doclet子类化并修改其行为来做到这一点.从 Sun Javadoc Technology页面开始.
- 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.
这篇关于我想在JavaDoc中添加JavaScript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文