Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Javadoc formatting(Issues with Javadoc formatting)
Javadoc formatting [message #1712000] Tue, 20 October 2015 16:42 Go to next message
Tekla Sinko is currently offline Tekla SinkoFriend
Messages: 1
Registered: October 2015
Junior Member
Hi,

I am having some problems achieving a Javadoc class comment formatted like this after pressing Ctrl-Shift-F:
/**
 * blablabla
 * 
 * <pre>
 * blabla
 *     blablabla
 * </pre>
 */

The formatting inside the pre-tags is fine, but I can't get it right for the tags themselves.

Result with Juno:
/**
 * blablabla
 * 
 *         <pre>
 * blabla
 *     blablabla
 * </pre>
 */

Result with Mars:
/**
 * blablabla
 * 
 *          <pre>
 * blabla
 *     blablabla
 *          </pre>
 */

What should I set to get the expected result?

Kind regards,
Tekla Sinko
Re: Javadoc formatting [message #1712436 is a reply to message #1712000] Sat, 24 October 2015 17:26 Go to previous message
Mateusz Matela is currently offline Mateusz MatelaFriend
Messages: 14
Registered: July 2009
Junior Member
I assume your <pre> section is inside a javadoc tag (that is after a line starting with @) - it's the only case I see where I get the same result as yours.
So it should work for you if you uncheck "Indent Javadoc tags" on the "Comments" tab.
Previous Topic:Avoiding file-replace confirmation dialog
Next Topic:reading an untyped .dat
Goto Forum:
  


Current Time: Wed Apr 24 21:21:49 GMT 2024

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

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

Back to the top