最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

java - Eclipse indenting of nested HTML tags in Javadoc comments - Stack Overflow

programmeradmin2浏览0评论

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?

发布评论

评论列表(0)

  1. 暂无评论