Use eclipse to generate an html format comment document [javadoc]

Source: Internet
Author: User

 

Preface

Recently, the organization translation Android has been worried about how to facilitate translation work. The current form is to copy the API on the page to the WORD before translation. The most troublesome thing is the format problem, let's look at whether we can directly translate the source code, and then use javadoc to generate html-Format documents. It's worth considering!

 

Statement

You are welcome to repost, but please keep the original source of the article :)

Blog: http://www.cnblogs.com

Farmer's uncle: http://www.cnblogs.com/over140/

 

Link

Refer to the following two articles:

Use eclipse to generate a document (javadoc)

How to Use Eclipse to generate Javadoc garbled code

 

Body

1. Procedure

1. Right-click the project to generate the doc and choose "Export". The following page is displayed:

    

2. Select Java-> Javadoc, click Next, and click Configure on the Right of Javadoc Command to select javadoc.exe. Under the bin directory of jdk, see the following interface:

    

3. Click Next To Go To The following page, where you can set the index generation, navigation bar, author, version, and other parameters:

    

4. Click Next To Go To The following page:

    

Note:

Note the parameter settings in VM options. Otherwise, you can click Finish to generate the parameter. Note the generation information of the Console.

 

Ii. Results

After the file is generated, an additional doc folder under the root directory of the project contains the generated html document, which is well-developed. The following are:

  

 

End

Perform a small-scale test and then modify the style.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.