Help save net neutrality! Learn more.
Close

Code Completion Updates

Help
Fred
2009-05-19
2012-12-07
  • Fred

    Fred - 2009-05-19

    Is there a method for keeping the function*.dat files up to date? For example how can I submit the missing 2 substr* functions or get the updated files? :)

     
    • Pierre Fauconnier

      > How to keep the file "function_full.dat" up to date ?
      Good question.

      Thanks to dysmas2, everybody knows that this file is used for completion
      http://apps.sf.net/mediawiki/devphp/index.php?title=Dev-PHP2.ug:editing#Autocompletion

      For GTK/GDK I've updated a PHP program in order to dump the required function headers.
      I'm afraid there's nothing for PHP itself.

      Any idea ?

      Thanks for your question,
      Pierre.

       
    • Fred

      Fred - 2009-05-20

      Hell (o)

      Given the fact that i'm completely out of date regarding php tools and development there is actually one way .. painful ... but that will probably work which is building a php documentation parser:

      1. download the LATEST many HTML files version of PHP documentation from http://www.php.net/download-docs.php and unpack it;

      2. run the documentation parser targeting the unpack directory;

      3. parser generates the function*.dat files

      How will this be done:
      » function documentation files consist of a "function.FUNCTION-NAME.html"
      » load first N bytes from file to a string
      » strip html tags
      » perform REGEXP on resulting string
      » save files according to specifications

      » additionally, a description .dat may be generated for future integration.

      Comments? :)

      Since I have a project to deliver soon, I won't get my hands on it briefly but if nothing comes in the meanwhile I'll definitely work on it.

       

Log in to post a comment.