[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.pdt] Re: Code Completion: <? rather than <?php

Hi,
in the Window -> Preferences -> PHP -> Editor -> Typing page you can set to NOT auto-complete the "php ?>".


I guess we should add the ability to configure the addition of the "php" as people tend (not recommended) to ignore them in some cases.

- Roy


Daniel Dornhardt wrote:

Hello,

Using "<? ?>" not recommended, in php6 short-tags are depreceated.
And default php.ini have short-tags disabled

Previously (Not sure when, some time before the 2.x Release) code assist allowed the use of short tags. I like them, especially for using php in view files and inserting things like <?= $username ?> and alternative syntax - style <? foreach($articles as $article): ?><? endforeach; ?> blocks. It seems really simpler and less threatening to non-programmers who aren't used to curly braces and everything, and it helps me keep my views nice and clean.

A matter of taste probably, but as I am as eccentric as every other human being, I'd like to have my good old way back. It doesn't have to be the default, I'm only interested on where to switch it on again.

If anybody has some advice on how to plug eclipse back to the old way, I'd be delighted.

Best wishes:

Daniel Dornhardt

On 25.12.2008 21:20, Igor wrote:
I like PDT. Thank you very much for a great work.

Question:
When I type "<?" the IDE immediately completes the "php ?>" for me.
Is there possibility to configure it, so that it appends just "?>"
without "php"? (so I get "<??>" instead "<?php ?>")

Looked around the Google for and couldn't find anything. Much thanks for
any insight.