Reputation: 16409
I have a comment that contains an example Java servlet configuration. It looks like:
/** Blah blah blah...
*
* {{{
* <servlet-mapping>
* <servlet-name>MyAppServlet</servlet-name>
* <url-pattern>/app/*</url-pattern>
* </servlet-mapping>
* }}}
The /*
in the comment creates a nested block comment in Scala and that seems to confuse the scaladoc tool. Is there a way to escape /*
in a block comment? Or another way to display that text?
Someone suggested using the entity / for the slash, but entities don't work inside the {{{ }}} code block.
Upvotes: 6
Views: 758
Reputation: 14842
This is all I could figure out:
/** Blah blah blah...
*
* <pre>
* <servlet-mapping>
* <servlet-name>MyAppServlet</servlet-name>
* <url-pattern>/app/*</url-pattern>
* </servlet-mapping>
* </pre>
*/
Ugly, but works...
Upvotes: 2