NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Indentation issues, and magical dissapearing code!


Joined: 04 Dec 2003
Posts: 27
Location: Portland, OR
Reply with quote
Edit: Using 3.3.3

Indentation has got to be one of the must bustificated features of PHPEd, and it's one of the most important. I posted about some of this almost a year ago, I think, but was kind of blown off at the time.

Set your options like this:

Smart Indent
Use Tab Char
Smart Tabs
Optimal Fill
Spaces in tab: 8
Block indent: 4

And then start playing with this:
Code:
if (foo) {
    bar;
} else {
    baz;
}


Select the block, indent it twice. Great.. it indented. You notice that it didn't use the 4-space indentation it's supposed to? So did I.

Reset the code block

Next, turn off Use Tab Char.

Select the block, indent it three times. What's that? It indented, but it wouldn't go beyond two levels, and it forced all of the code to the same indentation? Yeah. Indent it a few more times. It doesn't go anywhere.

Reset the code block.

Indent a single line (without selecting it first. Just press home, and then tab.)

It indented a full tab-space, and not the 4-space indentation?

Now, for the finale:

Reset the code block
Turn off Use Tab Char
Turn off Smart Tabs

Indent the block twice, same as above. Now, press Ctrl-Z to undo.

WHAMMO ... look at that. The first eight characters of your code have dissapeared. This is not undo-able. I hope you saved before indenting...
View user's profileFind all posts by SigneSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN MessengerICQ Number
Re: Indentation issues, and magical dissapearing code!


Joined: 03 Apr 2004
Posts: 78
Reply with quote
Signe wrote:
Edit: Using 3.3.3

Indentation has got to be one of the must bustificated features of PHPEd, and it's one of the most important. I posted about some of this almost a year ago, I think, but was kind of blown off at the time.

Set your options like this:

Smart Indent
Use Tab Char
Smart Tabs
Optimal Fill
Spaces in tab: 8
Block indent: 4

And then start playing with this:
Code:
if (foo) {
    bar;
} else {
    baz;
}


Select the block, indent it twice. Great.. it indented. You notice that it didn't use the 4-space indentation it's supposed to? So did I.

Reset the code block

Next, turn off Use Tab Char.

Select the block, indent it three times. What's that? It indented, but it wouldn't go beyond two levels, and it forced all of the code to the same indentation? Yeah. Indent it a few more times. It doesn't go anywhere.

Reset the code block.

Indent a single line (without selecting it first. Just press home, and then tab.)

It indented a full tab-space, and not the 4-space indentation?

Now, for the finale:

Reset the code block
Turn off Use Tab Char
Turn off Smart Tabs

Indent the block twice, same as above. Now, press Ctrl-Z to undo.

WHAMMO ... look at that. The first eight characters of your code have dissapeared. This is not undo-able. I hope you saved before indenting...


I also have problems with tabbing. I'm glad you spent the time to document so verbosely. I am sure ddmitrie will fix it.
View user's profileFind all posts by Rick ChristySend private messageYahoo Messenger
Indentation issues, and magical dissapearing code!
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