NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
disable php short tags in auto-complete


Joined: 24 Apr 2009
Posts: 12
Reply with quote
Hi,
I've been using PhpED for a couple of days now, and the more I spend time with it, the more I like it.
after using zend studio for long time and instead of upgrading my license there,I'm seriously thinking about purchasing a new PhpED license, but I still am missing some of its feature that are not in PhpED.
one of this features is auto-close php tags. (just like quotes and brackets auto-close)
but I found that there is another feature for that which is auto-completion.
the problem with that is, when I type the first delimiter of html tag a drop down menu appears with some suggestions which is the first on is <?..?> and the second one is <?php..?> and other tags after that such as <a tag etc.
I always use the full php tag <?php..?> and don't like to use the short tag <?..?>
but in auto completion the short tag comes first and I have to scroll down to the second line to choose the full php tag.
so, how can I disable the short tag or at list make it come second and the full tag <?php ..?> come first?
and how to make the opening tag <?php and closing tag ?> be in the same line not in two different lines?
if it required file edit then what file I have to edit?

hope someone can help with this as I heard there is a very good support for PhpED in this forum. Smile

thanks Smile
View user's profileFind all posts by XO39Send private message


Joined: 24 Apr 2009
Posts: 12
Reply with quote
anyone please?
View user's profileFind all posts by XO39Send private message
Guru master

Joined: 05 Jul 2004
Posts: 659
Location: Belgium
Reply with quote
TBH I don't think it can be disabled. Not all suggestions are taken from config files and I guess the php tags are one of those.
View user's profileFind all posts by BlizzSend private messageVisit poster's website


Joined: 24 Apr 2009
Posts: 12
Reply with quote
Yes, I didn't find any sign for that in the config files. but I still think it's there somewhere else.
if it can't be disabled, I at least need the Php short tags <?..?> be second and the full Php tags <?php..?> get first.
I hope someone can help to figure out where and/or how to do that.

thanks Blizz. Smile
View user's profileFind all posts by XO39Send private message


Joined: 09 Feb 2010
Posts: 1
Reply with quote
Unfortunately there isn't a way to modify the Short Tags, I agree this is a major oversight and I don't like the defaults either.

There is a workaround that is better. When you press CTRL+J you get code snippets or Code Templates as they are called in PhpED. These can be modified and new ones created. So Navigate to... Tools => Settings => Editor => Code Templates. Ensure "Neutral" is the selected Language. This will allow the tags to be inserted anywhere inside any of the other listed languages. If you select PHP as the language your shortcut key won't work if you try to use it inside td tags for example.

Click Add.

Name: <?php
Shortcut: F12 or whatever. (CTRL+P sounds logical but that invokes printing and won't paste your snippet.)
Description: PHP tags

Write your code in the text area to how you want your snippet to be. Use the pipe character for cursor position.

Example:
<?php | ?>

Click OK.

Now everytime you press F12 you'll get your preferred PHP tags all on one line.
View user's profileFind all posts by CarnellSend private message
disable php short tags in auto-complete
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic