Bug 97202 - [formatting] Code formatting does not work in non-javadoc comments (using <PRE>)
Summary: [formatting] Code formatting does not work in non-javadoc comments (using <PRE>)
Status: RESOLVED DUPLICATE of bug 75460
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-30 05:39 EDT by Christopher Oezbek CLA
Modified: 2007-03-13 22:21 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Oezbek CLA 2005-05-30 05:39:04 EDT
<pre>-formatting does not work in non-javadoc comments
 
(Be aware of the /* instead of /**)
 
/*
 * <pre>
 * public Object[] getChildren(Object parentElement) {
 *     if (parentElement instanceof MovingBox) {
 *         MovingBox box = (MovingBox) parentElement;
 *         return concat(box.getBoxes().toArray(), box.getBooks().toArray(), box
 *                 .getGames().toArray());
 *     }
 *     return EMPTY_ARRAY;
 * }
 * </Pre>
 */
 
is turned into
 
/*
 * <pre> public Object[] getChildren(Object parentElement) { if (parentElement
 * instanceof MovingBox) { MovingBox box = (MovingBox) parentElement; return
 * concat(box.getBoxes().toArray(), box.getBooks().toArray(), box
 * .getGames().toArray()); } return EMPTY_ARRAY; } </Pre>
 */
 
No matter which preferences are set.
Comment 1 Dani Megert CLA 2005-10-10 12:16:55 EDT
Ownership changed.
Comment 2 Olivier Thomann CLA 2007-03-13 22:21:58 EDT

*** This bug has been marked as a duplicate of bug 75460 ***