Welcome Guest ( Log In | Register )




                Web Hosting

 
Reply to this topicNew Topic
Php Script Organizer
khalilov
post Dec 3 2008, 07:31 PM
Post #1


Premium Member
Group Icon

Group: [HOSTED]
Posts: 255
Joined: 17-July 08
From: Atlantis
Member No.: 31,503
myCENTs:73.77


Tracking down errors caused by missing ; or {,} is annoying enough, badly organised scripts make it worse. I want a program which i can write my php scripts and they get automatically organised. Example i put an if statement i press enter and put { then everytime after that i press enter i don't go to a new line i go similary to where the { went. If that doesn't make sense i want a program that turns this:
CODE
if(condition1)
{if(condition2)
{statement1;
statement2;
}
else
{statement3;
statement4;
}}
else
{statement5;
statement6;
}

To something like:
CODE
if(condition1)
   {if(condition2)
       {
          statement1;
          statement2;
       }
    else
       {
          statement3;
          statement4;
       }
   }
else
     {
       statement5;
       statement6;
     }

It doesn't have to be automated or so, i just need something other than notepad and having to use space alot to organise
Go to the top of the page
 
+Quote Post
Quatrux
post Dec 3 2008, 08:23 PM
Post #2


the Q
Group Icon

Group: [HOSTED]
Posts: 1,206
Joined: 13-July 05
From: Lithuania, Vilnius
Member No.: 7,059
myCENTs:90.94


for free you can use Notepad2 or Notepad++, because simple Windows Notepad just sucks!

Also you can get yourself Eclipse with PHP environment or even buy the best PHP IDE in my opinion PHP Designer 2008, it's not so expensive or you can get the older free version of PHP Designer if you do a search. smile.gif

Also, why would you want to do that? You can always do that yourself, I mean the if statements thing..
Go to the top of the page
 
+Quote Post
khalilov
post Dec 3 2008, 08:46 PM
Post #3


Premium Member
Group Icon

Group: [HOSTED]
Posts: 255
Joined: 17-July 08
From: Atlantis
Member No.: 31,503
myCENTs:73.77


Well yeh but if you use like 5 if statements all together wink.gif
i might use C program to write the script lol. i'll try the notepad 2 thing
Edit: Downloaded notepad 2 from http://www.flos-freeware.ch/notepad2.html. its exactly what i needed thx m8 biggrin.gif

This post has been edited by khalilov: Dec 3 2008, 08:59 PM
Go to the top of the page
 
+Quote Post
Quatrux
post Dec 4 2008, 10:28 AM
Post #4


the Q
Group Icon

Group: [HOSTED]
Posts: 1,206
Joined: 13-July 05
From: Lithuania, Vilnius
Member No.: 7,059
myCENTs:90.94


Yeah, Notepad2 is really simple and does a lot, but it doesn't organize your code like you want automatically.. I saw some programs which do that, but I never used it, because usually when I code, I write tabs like that myself, even though some automatic things helps, like when I write a { symbol, I get a } symbol and my pointer being in the middle of those, which really helps when you get used to it, even though for the first times it was annoying, you write a ' " { [ < and get it closed, sometimes you don't need it though. tongue.gif
Go to the top of the page
 
+Quote Post

Reply to this topicNew Topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   1 cherri 1,354 21st December 2008 - 09:59 AM
Last post by: iG-Christian
No New Posts   2 denverporia19 1,862 11th December 2008 - 10:36 PM
Last post by: iG-Marble
No New Posts   10 m3th 3,226 8th December 2008 - 09:08 PM
Last post by: iG-silv3r
No New Posts 5 websaint 875 6th December 2008 - 06:13 PM
Last post by: khalilov
No New Posts   8 Kart 1,700 25th November 2008 - 04:51 AM
Last post by: iG-Jeffry
No new   24 JohnNitro 9,651 14th November 2008 - 11:54 AM
Last post by: Guest
No New Posts   15 coder2000 6,324 7th November 2008 - 03:44 PM
Last post by: Shag
No New Posts   3 FirefoxRocks 310 29th September 2008 - 03:03 AM
Last post by: FirefoxRocks
No New Posts   2 hcolon 446 19th August 2008 - 06:55 PM
Last post by: magiccode9
No New Posts   5 mobi-zone 524 7th August 2008 - 05:15 PM
Last post by: toby
No New Posts   7 Eggie 2,565 31st July 2008 - 01:03 PM
Last post by: Guest
No New Posts   8 thenumberone 1,123 25th July 2008 - 04:16 AM
Last post by: Mike gambino
No New Posts   3 Feelay 1,079 23rd July 2008 - 09:17 PM
Last post by: Feelay
No New Posts 13 wannabeeaweak 3,597 20th July 2008 - 03:17 AM
Last post by: Arbitrary
No New Posts   3 Mordent 523 19th July 2008 - 11:55 PM
Last post by: Arbitrary