Bug 152914 - Prevent blocks of code from being formatted
Summary: Prevent blocks of code from being formatted
Status: RESOLVED DUPLICATE of bug 76435
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-06 02:27 EDT by Keith Whittingham CLA
Modified: 2006-08-06 15:52 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 Keith Whittingham CLA 2006-08-06 02:27:32 EDT
Hi all,
First thanks for the hard work - Eclipse is just excellent.

It would be nice if blocks of code could be excluded from being reformatted by the Java file reformatter ( / Source / Format ). We use that to ensure that code is standard across the whole project but there are sometimes when I don't want the code indenting 'properly'. For example

  //*Fomatting off
  sb.append(
    "<form id=ed name=ed action=# method=post>" +
      "<input type=hidden name=app value=cms>" +
      "<input type=hidden name=pge value=" + pageName + ">" +
      "..." +
    "</form>");
  //*Fomatting on
Comment 1 Florian Priester CLA 2006-08-06 04:30:31 EDT
See bug 76435 (via bug 120767/bug 141674).
Comment 2 Frederic Fusier CLA 2006-08-06 15:52:06 EDT

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