Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Correct usage of @code (Javadoc)
Correct usage of @code (Javadoc) [message #527953] Sat, 17 April 2010 06:41 Go to next message
Eclipse UserFriend
Hi,

the following demonstration code shows up correctly when javadoc is generated from source:
<pre>{@code
 * List<Object> mylist = new ArrayList<Object>();
 * myList.add(new Object());
 * }</pre>

But when I invoke the code formatter (Strg+Alt+F) the html characters are escaped (< is converted to &lt; etc). Since the @code tag already does the job of escaping the characters the characters are escaped twice.

Since I like to hit Strg+Alt+F quite frequently I continously break my javadoc comments. How can I prevent this from happening?
Re: Correct usage of @code (Javadoc) [message #528158 is a reply to message #527953] Mon, 19 April 2010 10:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NOSPAM.ibm.com

Use <code> ajads;lkf </code> instead

--
Thanks,
Rich Kulp
Re: Correct usage of @code (Javadoc) [message #528294 is a reply to message #527953] Mon, 19 April 2010 21:55 Go to previous message
Eclipse UserFriend
Open a bug report against JDT/Core for investigation.

Thanks,

Olivier
Previous Topic:Problems with Eclipse JEE Version
Next Topic:Hot code replace won't work with JBoss and Eclipse
Goto Forum:
  


Current Time: Tue Mar 25 03:05:19 EDT 2025

Powered by FUDForum. Page generated in 0.03063 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top