NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
PhpED 3.3 editor configuration


Joined: 10 Mar 2004
Posts: 2
Reply with quote
Hi,

Could you tell mi how to configure editor to get an effect presented below:

'|' - cursor position
'_' - space (this forum script is deleteing spaces :-\)

Stage I:

function xyz ()
___{|
___}


Pressing <enter>...


Stage IIa (desired):

function xyz ()
___{
___|
___}


Stage IIb (actual, not wanted):

function xyz ()
___{
______|
___}


I hope you know what I want to do. :-) In PhpED 3.2 I did it somehow, but in 3.3... I'm unable... so far.

Best regards.
View user's profileFind all posts by CarolusSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
this feature is known as auto-indent
so you may turn it off if you wish.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 10 Mar 2004
Posts: 2
Reply with quote
Hmm... Is it this really? When I turned off this feature, there is no indent at all (cursor is placed at the begining of the line) while I need indent at the same level as bracket.

Propably it's something else or maybe you disabled this feature? :-\
View user's profileFind all posts by CarolusSend private message


Joined: 06 Oct 2003
Posts: 13
Reply with quote
Quote:
I think, it's a good idea to follow standards adopted by many people.

don't you think it's a good idea to let people code to the standards they choose for themselves or their team?

an IDE is just an IDE, not a semantic pulpit. it's not for you to determine standards to which coders who use your editor should be beholden. it's for you to build a flexible, robust code editor that can accomodate as large a cross-section of your potential customer base as possible.

standards are a good thing, but you shouldn't force your favorite ones on your customers.
View user's profileFind all posts by nebySend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
3.3.1 (and versions later on) offers smart indent and auto indent features.
While in regular (auto) indent cursor is just placed below the first non-space character on the line above. Smart-indent counts curly brackets and adds extra indentation if needed.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
PhpED 3.3 editor configuration
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