Opened 8 years ago

Closed 4 years ago

#213 closed Feature Requests (None)

Formatter: Newline B/F <?php ?>

Reported by: cyface Owned by: ed_mann
Priority: 3 Milestone: 1.5.0
Component: None Version: 1.2.0-nightly
Keywords: formatter, code style Cc:

Description (last modified by ed_mann)

Hello!  I love PHPEclipse!

One tiny thing I would love would be an option in the
formatter that allowed me to keep/fix a newline right
after the  <?php tag, and right before the ?> tag.

Right now the formatter turns this:

<?php

      include_once('myclass.php');
      session_start();

?>

into this:

<?php
      include_once('myclass.php');
      session_start();
?>

And I would prefer that it didn't. :)

Thanks!!!!

Tim White

Change History (4)

comment:1 Changed 8 years ago by axelcl

Logged In: YES 
user_id=1143825

Note: for this feature we have to modify:
net.sourceforge.phpdt.internal.formatter.CodeFormatter

comment:2 Changed 5 years ago by ed_mann

  • billable set to 0
  • Description modified (diff)
  • Keywords formatter, code style added
  • Owner changed from nobody to ed_mann
  • Status changed from assigned to new
  • Version changed from None to 1.2.0-nightly

This bug is partially fixed. It will add a extra space and then some on the <?php but it does not do it before the ?>

I am going to take this bug.

comment:3 Changed 5 years ago by ed_mann

  • Milestone set to 1.5.x
  • os_platform set to Linux

comment:4 Changed 4 years ago by incastrix

  • Status changed from new to closed

tooooooooo old.

Note: See TracTickets for help on using tickets.