2011年8月21日星期日

How to implement syntax highlighter in javadoc

Javadoc don't support syntax highlighter, and this feature is important when make example of how to use the class.

We can and this feature by add a block of JavaScript.

1. Download syntaxhighlighter_3.0.83 to document root.
2. Add the javadoc comment as
/**
 * Class Description
 * {@docRoot}
   
   
   
   
   
      You java code here
   
*/ public class YouClass{}
3. It works now.

没有评论:

发表评论