NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
[50% Complete] Auto complete quotes & braces issue


Joined: 05 Aug 2007
Posts: 32
Reply with quote
If this feature is turned on, it automatically adds an extra " ' ] or } when I type an opening one. I like that; however, what I don't like is that if I type something like:

echo 'This is a string that will have ' . $this_var . ' printed in it.';

you can't continue typing the quote, or bracket, and the editor realize that you want to close the current one, rather than start a new one. So PhpED gives me this:

echo 'This is a string that will have '' . $this_var . ' printed in it.'';

Is there a way to fix this by an option I'm not seeing (or don't realize exists)? Thanks for the help.

UPDATE
Build 5031 does fix some of the issues; however, if you type something like:
Code:
$var['array_key'] = array('some-key'=>(result_of_Function('some-value')));

it comes out like this....
Code:
$var['array_key'] = array('some-key'=>(result_of_Function('some-value')));)))]


So it properly skips quotes, but not braces Sad So it's half-way fixed...

UPDATE II
Still b0rk3d in 5219.... downloading 5220 right now.

UPDATE III
Still b0rk3d in 5220... quite annoying not to be able to use it.


Last edited by bpat1434 on Mon Dec 10, 2007 11:49 pm; edited 3 times in total
View user's profileFind all posts by bpat1434Send private messageAIM AddressYahoo MessengerMSN MessengerICQ Number
Site Admin

Joined: 13 Jul 2003
Posts: 7861
Reply with quote
Thanks for the report.
It will be improved in build 5031

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 05 Aug 2007
Posts: 32
Reply with quote
Fantastic!! Thanks!

I just wanted to add (and hopefully you look at this again), that if you don't fill the quotes or braces with text, i.e. you say:

$var = array();

Then it works as expected (typing ")" just skips over the closing ")"). Same thing with other brackets & quotes. Not sure if this will make it become a feature faster; but, thought it would help.
View user's profileFind all posts by bpat1434Send private messageAIM AddressYahoo MessengerMSN MessengerICQ Number
Site Admin

Joined: 13 Jul 2003
Posts: 7861
Reply with quote
5031 is available now.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 05 Aug 2007
Posts: 32
Reply with quote
Fantastic!! Downloading it now!!
View user's profileFind all posts by bpat1434Send private messageAIM AddressYahoo MessengerMSN MessengerICQ Number


Joined: 24 Oct 2006
Posts: 98
Location: Melbourne, AU
Reply with quote
dmitri wrote:
5031 is available now.
Will you be posting a 'News' item explaining the changes?
View user's profileFind all posts by LatsSend private message
Guru master

Joined: 05 Jul 2004
Posts: 660
Location: Belgium
Reply with quote
Lats wrote:
Will you be posting a 'News' item explaining the changes?

http://www.nusphere.com/news/changes50.htm Smile
View user's profileFind all posts by BlizzSend private messageVisit poster's website


Joined: 24 Oct 2006
Posts: 98
Location: Melbourne, AU
Reply with quote
Thanks however, that's not the easiest thing to find on the main site.
View user's profileFind all posts by LatsSend private message
Guru master

Joined: 05 Jul 2004
Posts: 660
Location: Belgium
Reply with quote
I know, the only reason I know of the file is because I read it in a newsletter. I've bookmarked it anyway since it seems the topic in the News forum isn't updated anymore. I do like to know what was changed. Perhaps including the changes in a TXT in the installer would be a good idea.
View user's profileFind all posts by BlizzSend private messageVisit poster's website


Joined: 24 Oct 2006
Posts: 98
Location: Melbourne, AU
Reply with quote
A-ha - smart move, well done Smile
View user's profileFind all posts by LatsSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7861
Reply with quote
one day we'll add RSS feed for the page Smile
and 'check for new version' in the IDE too Smile

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Veteran

Joined: 06 Jun 2007
Posts: 289
Location: Vancouver, Canada
Reply with quote
dmitri wrote:
5031 is available now.
The changelog does not mention this change Confused

_________________
Smile
View user's profileFind all posts by annoSend private messageVisit poster's website
[50% Complete] Auto complete quotes & braces issue
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 2  

  
  
 Reply to topic