Menu

[REQUEST] Standard function prototypes

2005-04-05
2012-12-07
  • /usr/local/ΕΨΗΕΛΩΝ

    Hello,
    I found Dev-PHP in a magazine's CD. I like your project.
    Before installing Dev, I was using PHP Expert Editor, a really powerful editor with even embedded FTP support.

    I noticed that Dev-PHP, unlike PHP Expert Editor, doesn't show you the syntax ("prototype") of standard functions.

    Like in Visual Studio, if you type the name of a function and open the parenthesis, phpxpedit shows you all the arguments of the function.

    For example when you type "header(" a small popup appears on top of the line you're working on, showing:
    "int header( string string [, bool replace [, int http_respone_code]])"
    This helps you use standard functions when you forget the right syntax.

    I suggest you to build a function index file, with name and protos. When the "(" is detected, Dev-PHP should search for the previously typed function name in the index file, and report the standard prototype, maybe with a short explanation, if found.

    What do you think about this idea? phpxpedit is a very powerful PHP editor, but is a shareware. Dev-PHP is Open Source ;-)

     
    • Urs Mäder

      Urs Mäder - 2005-04-05

      you can test version 2.x.x of dev-php. this version has a builtin ftpclient. if you use Ctrl-space in the editor you see a  popup - window with the standard functions syntax. but there is no small popup if you are typing..

      version 2.x.x has also included a real webserver to preview the files like on a external server. in the future a debugger with xdebug will be included (is in "alpha"- status this moment).

      devphp 3 will be more editor and is coded from leonardo garcia. devphp 2 come as ide with more features but larger files. use what you need... -:)

       
    • xpandeR

      xpandeR - 2005-04-06

      I hate those kind of pop :) So if you want to had it please make a disable box for this option :p

      For sure, It's really nice when you forget but so boring when you don't because you can't see the behind the pop up-area and most of time (for php at least) it don't provide enough information if you don't previously know exactly what this function do, so www.php.net/yourfunction si much better :p

       

Log in to post a comment.