Author Topic: Javadoc escape  (Read 271 times)

jporkkahtc

  • Senior Community Member
  • Posts: 1492
  • Hero Points: 123
  • Text
Javadoc escape
« on: January 02, 2018, 11:22:47 pm »
If I want to include a literal "@" in a javadoc, apparently the way to do it is:
 * {@literal @}my_text

Slick JavaDoc adds extra newlines before and after the @literal tag, though it does seem to actually escape the @, as "my_text" isn't treated as a tag anymore.

jporkkahtc

  • Senior Community Member
  • Posts: 1492
  • Hero Points: 123
  • Text
Re: Javadoc escape
« Reply #1 on: January 02, 2018, 11:31:17 pm »
Oh, apparently this works too, and works correctly in Slickedit
@my_text

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2326
  • Hero Points: 307
Re: Javadoc escape
« Reply #2 on: January 03, 2018, 03:22:35 pm »
The simplest technique is to use @@my_text

I will fix the bug with @literal for the next release.