Welcome Guest ( Log In | Register )




                Web Hosting Guide

 
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: 279
Joined: 17-July 08
From: Atlantis
Member No.: 31,503
myCENTs:5.44


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,355
Joined: 13-July 05
From: Lithuania, Vilnius
Member No.: 7,059
myCENTs:82.09


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: 279
Joined: 17-July 08
From: Atlantis
Member No.: 31,503
myCENTs:5.44


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,355
Joined: 13-July 05
From: Lithuania, Vilnius
Member No.: 7,059
myCENTs:82.09


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  
4 PHP
8 bluefish 3,131 16th March 2010 - 02:01 PM
Last post by: iG-op
No New Posts 7 Niru 4,454 20th February 2010 - 07:04 AM
Last post by: iG-suresh
No new   19 Feelay 9,186 18th February 2010 - 08:47 AM
Last post by: iG-Tsholofelo
No New Posts   10 Eggie 8,447 10th February 2010 - 06:47 AM
Last post by: iG-
No New Posts   6 Skepticus 188 7th February 2010 - 02:16 AM
Last post by: 8ennett
No New Posts   0 8ennett 70 30th January 2010 - 11:10 PM
Last post by: 8ennett
No new   25 JohnNitro 15,379 26th January 2010 - 11:30 AM
Last post by: iG-mdshare
No New Posts   3 wutske 1,200 18th December 2009 - 07:36 AM
Last post by: iG-anil kumar
No new   23 TavoxPeru 13,120 6th December 2009 - 01:38 PM
Last post by: iG-Alex Finney
No New Posts   10 yordan 2,541 27th October 2009 - 11:31 PM
Last post by: HannahI
No New Posts   2 pbolduc 3,558 3rd October 2009 - 08:20 PM
Last post by: iG-Andrew
No New Posts   11 soleimanian 5,159 22nd September 2009 - 12:01 PM
Last post by: iG-
No New Posts   7 Eggie 2,615 9th September 2009 - 02:22 AM
Last post by: iG-nate
No New Posts   12 m3th 8,032 29th August 2009 - 12:16 AM
Last post by: dmnhunter
No New Posts   2 Alex@Synergy 4,925 23rd July 2009 - 02:11 PM
Last post by: iG-peter


Web Hosting Powered by ComputingHost.com.
HONESTY ROCKS! truth rules.
Creative Commons License