NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Rectangular selection


Joined: 20 Sep 2006
Posts: 59
Reply with quote
Hi,

If I try to select a block of text while holding the ALT key, I get very strange behaviour.

I'm not sure how to explain how it should work, but Microsoft Word has the correct behaviour.

Cheers,

John
View user's profileFind all posts by monkiesSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Strange behaviour? What do you mean?

BTW, PhpED is and IDE while Microsoft Word is a text processor, please compare apples with apples.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 20 Sep 2006
Posts: 59
Reply with quote
Ok, in visual studio if you hold ALT, then click in a block of text, the way it selects text is exactly the same as in word.

cut and paste this into word:


function render()
{
$tmp = '<div class="report_summary">';
$tmp .= '<h1 class="report_header"">'. $this->_title .'</h1>';
$tmp .= '<div class="report_summary_2">';

$tmp .= $this->_contents;

$tmp .= '</div></div>';
return $tmp;
}

Now, hold ALT, then click on the RED <, now drag the mouse down to the line $tmp .= '</div></div>';

Now drag the mouse out to the right to select all text (I have made what should be selected bold):

function render()
{
$tmp = '<div class="report_summary">';
$tmp .= '<h1 class="report_header"">'. $this->_title .'</h1>';
$tmp .= '<div class="report_summary_2">';

$tmp .= $this->_contents;

$tmp .= '</div></div>';
return $tmp;
}

I can't explain it very well, but try selecting blocks of code using the ALT key in word, or Visual Studio and then in PHPEd, and you will see the difference.

Cheers,

John
View user's profileFind all posts by monkiesSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Well, I tried Visual Studio and could not find anything that special it does when selection is done with Alt. It behaves exactly the same as when Shift is held down.
It just makes rectangular selection in those cases. To do it in PhpED you have to hold down Shift. Alt is not supported for selection with mouse, but is supported for selection with keyboard.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Rectangular selection
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