Hi!
I was wondering if there's any way to include the PHP variables $_GET, $_POST and $_COOKIE in the symbols list on Geany panel.
I also noticed that only received variables (eg. "$variable = anything") are listed there. So I would like to differ the variables while present, or while created on the document too.
Thanks in advance!
Perhaps is there any way to change how Geany find symbols on the code?
Vinícius André Massuchetto http://vinicius.soylocoporti.org.br
Vinicius Massuchetto escreveu:
Hi!
I was wondering if there's any way to include the PHP variables $_GET, $_POST and $_COOKIE in the symbols list on Geany panel.
I also noticed that only received variables (eg. "$variable = anything") are listed there. So I would like to differ the variables while present, or while created on the document too.
Thanks in advance!
On Fri, 04 Sep 2009 09:59:02 -0300, Vinicius wrote:
Perhaps is there any way to change how Geany find symbols on the code?
Check tagmanager/php.c in the source code. This is the code which handles symbol detection in PHP files.
Since $_GET, $_POST, $_COOKIE and $_SERVER are a pretty short list of special variables, these could be added to the auto-generated PHP global tags as well (see http://git.geany.org/geany/tree/scripts/create_php_tags.php). That might be easier with a similar result (read: they would appear in the auto-completion list even if not defined before).
Harold, as you seem to be an experienced PHP hacker, does this makes sens to you (the question is also valid for the other PHP guys around :D).
Regards, Enrico