Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » <?php tags and bookmarks
<?php tags and bookmarks [message #51222] Thu, 13 September 2007 19:21 Go to next message
Eclipse UserFriend
Originally posted by: ryan.gametrailers.com

I believe this is a code assist issue but I'm pretty new to eclipse and pdt
and I can't figure out how to stop auto-inserting "<?php ?>" every time I
type "<?", which makes it very frustrating to use the shorthand echo syntax
"<?="

I've got the All-in-one S20070826-M3

Anyone know how to disable that feature?

Also, unrelatedly, is there a trick to enabling bookmarks? The option to add
them is always greyed out in every file I've opened.

Thanks a lot for any help!

- Ryan
Re: <?php tags and bookmarks [message #51248 is a reply to message #51222] Thu, 13 September 2007 19:53 Go to previous messageGo to next message
Michael Fesser is currently offline Michael FesserFriend
Messages: 16
Registered: July 2009
Junior Member
..oO(Ryan)

>I believe this is a code assist issue but I'm pretty new to eclipse and pdt
>and I can't figure out how to stop auto-inserting "<?php ?>" every time I
>type "<?", which makes it very frustrating to use the shorthand echo syntax
>"<?="

Why do you use short open tags at all? It's not recommended, because
it's unreliable (could be disabled on the server) and may cause problems
if you use PHP to create XML documents. Portable code shouldn't use it.

Micha
Re: <?php tags and bookmarks [message #51274 is a reply to message #51248] Thu, 13 September 2007 20:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ryan.gametrailers.com

Micha,
I realize it's not recommended, but this code doesn't need to be portable
(at least to anywhere I don't have control over the config) and generating
XML isn't a concen either so it's a useful shortcut. Do you know if there's
a way to turn that off?
Re: <?php tags and bookmarks [message #51723 is a reply to message #51274] Fri, 14 September 2007 09:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pavel.kunc.google.com

Hi,

the latest RC1 release doesn't put <?php ?> but <? ?> by default... Which
is what you need but for me it's really unconfortable.

And I also would like to know if there's some settings for it.

Pavel

On Thu, 13 Sep 2007 22:03:53 +0200, Ryan <ryan@gametrailers.com> wrote:

> Micha,
> I realize it's not recommended, but this code doesn't need to be portable
> (at least to anywhere I don't have control over the config) and
> generating
> XML isn't a concen either so it's a useful shortcut. Do you know if
> there's
> a way to turn that off?
>
>



--
Re: <?php tags and bookmarks [message #51816 is a reply to message #51723] Fri, 14 September 2007 17:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bono.gmail.com

you can enable and disable it using the preference page
Preference -> PHP -> Editor -> Typing -> Close PHP tag

Good luck
Re: <?php tags and bookmarks [message #52786 is a reply to message #51816] Tue, 18 September 2007 22:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ryan.gametrailers.com

Thanks! I didn't have that option in the version I had at the time, but
upgrading to the new release added it in.

Any idea about not being able to add bookmarks? It's still greyed out for
some reason

"bono" <bono@gmail.com> wrote in message
news:cb4d89048100343f6c14b2ad8f3055c6$1@www.eclipse.org...
> you can enable and disable it using the preference page Preference ->
> PHP -> Editor -> Typing -> Close PHP tag
> Good luck
>
Re: <?php tags and bookmarks [message #52812 is a reply to message #52786] Wed, 19 September 2007 01:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ryan.gametrailers.com

Nevermind! I wasn't in a project and didn't realize I need to be. Thanks for
everyone's help

"Ryan" <ryan@gametrailers.com> wrote in message
news:fcpl4i$b62$1@build.eclipse.org...
> Thanks! I didn't have that option in the version I had at the time, but
> upgrading to the new release added it in.
>
> Any idea about not being able to add bookmarks? It's still greyed out for
> some reason
>
> "bono" <bono@gmail.com> wrote in message
> news:cb4d89048100343f6c14b2ad8f3055c6$1@www.eclipse.org...
>> you can enable and disable it using the preference page Preference ->
>> PHP -> Editor -> Typing -> Close PHP tag
>> Good luck
>>
>
>
Re: <?php tags and bookmarks [message #52995 is a reply to message #51816] Wed, 19 September 2007 12:17 Go to previous message
Eclipse UserFriend
Originally posted by: pavel.kunc.google.com

Hi,

but this is only for on/off PHP tags. But does anybody suffers that in the
stable 1.0 relase by typing <? puts <? ?> instead <?php ?>??

Any way how to set PDT to put <?php ?> again? Or do only I suffer this?

Pavel


On Fri, 14 Sep 2007 19:31:19 +0200, bono <bono@gmail.com> wrote:

> you can enable and disable it using the preference page Preference ->
> PHP -> Editor -> Typing -> Close PHP tag Good luck
>



--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Previous Topic:XDebug and Path Mapping in RC1
Next Topic:Can't set up PHP run profile
Goto Forum:
  


Current Time: Tue Dec 03 17:23:53 GMT 2024

Powered by FUDForum. Page generated in 0.06288 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top