I just upgraded to Eclipse 3.5 PDT, and everytime I type <?
, it converts it into <?php ?>
. How do I turn that off?
views:
477answers:
1
+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
2009-08-12 21:51:10
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
2009-08-12 21:59:01
AFAIK, the short tags are being deprecated in PHP 6
Ken Keenan
2009-08-12 22:03:58
mainly because it conflicts with <?xml
bucabay
2009-08-12 23:44:43
@bucabay That never seemed to make sense to me: if in a XML context then don't use the short version.
David
2010-04-09 13:09:12