views:

477

answers:

1

I just upgraded to Eclipse 3.5 PDT, and everytime I type <?, it converts it into <?php ?>. How do I turn that off?

+3  A: 

If you want to turn it off, it's under

Preferences -> PHP -> Editor -> Typing -> Close PHP Tag (?>)

It really is a best practice to use full <?php open tags however.

zombat
Thanks! I know it's best to use the full <?php tag, I just wanted to have the option to remove the auto-close.
davethegr8
AFAIK, the short tags are being deprecated in PHP 6
Ken Keenan
mainly because it conflicts with <?xml
bucabay
@bucabay That never seemed to make sense to me: if in a XML context then don't use the short version.
David