Does Javadoc have an equivalent to <![CDATA[ … ]]>?

后端 未结 4 863
心在旅途
心在旅途 2020-12-15 04:10

Unfortunately, there is no CDATA in HTML.

This is a pity, because it would be perfect for adding javadoc comments that include XML, so you don\'t have t

4条回答
  •  旧时难觅i
    2020-12-15 04:48

    Close and reopen the {@code} tag around the braces to get ${dollar_sign_variables} to render correctly in eclipse despite bug 206319 and bug 206345 and without resorting to full HTML escaping:

    /*
     * 
     * {@code
     * 
     *   Text
     *   $}{ "script" }{@code 
     * 
     * }
     * 
    */

    which renders in Eclipse Indigo SR2 (3.7.2) as

    
      Text
      ${ "script" }
    
    

提交回复
热议问题