admin管理员组

文章数量:1224405

Suppose I have Javadoc comment with:

 /** 
  * <ul>
  *   <li>stuff</li>
  *   <li>stuff</li>
  * </ul>
  */

When I run any of the eclipse formatting methods on this text, either as "Format Element" or "Format the selected Text", it removes the indenting of the HTML sub-elements and I get:

  /**
   * <ul>
   * <li>stuff</li>
   * <li>stuff</li>
   * </ul>
   */

Depending on list complexity, the result is much harder to read than the indented version.

Is there a means to instruct eclipse to be kinder to HTML tag indenting other than completely stopping it to format Javadoc?

本文标签: javaEclipse indenting of nested HTML tags in Javadoc commentsStack Overflow