NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
[FIXED] Correct the PHP(5) templates


Joined: 21 Jan 2008
Posts: 19
Reply with quote
Hello

I'd like to add something about templates. Look at first screenshot. Pay special attention to tabs. I use tabs for indent, never spaces.

When I create new file using this template all tabs are changed into four spaces:

Then after saving new file, every three spaces are converted back to tab, leaving one space for every tab:


This is quite strange and makes using complicated templates unuseful for me, because I have to delete this one left space character. Please don't tell me to change indent from tabs to spaces, it's not an option. Here is my settings screen (maybe I messed something):


Last edited by wenihal on Wed Apr 02, 2008 8:21 am; edited 1 time in total
View user's profileFind all posts by wenihalSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Quote:
When I create new file using this template all tabs are changed into four spaces

you may want to use code templates available with Ctrl-J (see in Tools->Settings->Code Templates settings)
They are more friendly to the tab characters.
Regarding file templates, I'll check if we can fix it.

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


Joined: 21 Jan 2008
Posts: 19
Reply with quote
dmitri wrote:
you may want to use code templates available with Ctrl-J (see in Tools->Settings->Code Templates settings)


Thanks for your tip, but build 5232 fixes this issue, thanks a lot. Unfortunately it also introduces new bug with templates. Now "|" is not recognized as "where to place cursor".
View user's profileFind all posts by wenihalSend private message


Joined: 21 Jan 2008
Posts: 19
Reply with quote
Build 5233 fixes all bugs. Many thanks.
View user's profileFind all posts by wenihalSend private message
[FIXED] Correct the PHP(5) templates
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