NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Indent after <?php


Joined: 22 Mar 2013
Posts: 4
Reply with quote
Hello, how i can stop indenting code after <?php tag
Example:
View user's profileFind all posts by OmIkRoNiXzSend private message
Guru master

Joined: 24 Jul 2009
Posts: 737
Reply with quote
When entering new lines, PhpED keeps the indentation of the previous line. Remove the first indent with a new file and PhpED will not indent until you press tab.

You can edit the default template if you want, to remove the starting indent.

To fix your existing file, do a select all, then shift+tab to pull the indent back.
View user's profileFind all posts by plugnplaySend private message


Joined: 22 Mar 2013
Posts: 4
Reply with quote
But Re-indenting Code will return this starting indent to all lines.
View user's profileFind all posts by OmIkRoNiXzSend private message


Joined: 22 Mar 2013
Posts: 4
Reply with quote
plugnplay wrote:
You can edit the default template if you want, to remove the starting indent.

-
Searched for templates in parameters and found nothing.
View user's profileFind all posts by OmIkRoNiXzSend private message
Guru master

Joined: 24 Jul 2009
Posts: 737
Reply with quote
Have a look at http://forum.nusphere.com/modifying-templates-t8650.html
View user's profileFind all posts by plugnplaySend private message


Joined: 22 Mar 2013
Posts: 4
Reply with quote
Ok seems now it works for new "<?php" right indent after this. But Re-indent-ing still adding two spaces to begin of each line.

I've changed this in "C:\Users\USER\AppData\Roaming\NuSphere\PhpED\templates\Php File.php", deleted indent on second line near pipe.
View user's profileFind all posts by OmIkRoNiXzSend private message
Indent after <?php
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