Symbol completion is one of the key features that makes geany "My Editor" and I'm really glad it's something you've taken the time to implement ...I had a question, and possibly a todo item...
I latched onto geany in the first place because of it's memory and processor "weight" and becuase it had features like Regex find-and-replace-within-selection -- which I couldn't figure out how to get from eclipse...
I had used a Beta of Zend in the past and I really feel that because of it's simple dependency tree, geany is the clear winner, in spite of a few really great features that geay doesn't have, in comparison.
anyhow, my point: Zend uses a php doc standard of using @param to identify paramters and then tooltips them as you complete a function name within you application. geany does this for language built-ins but I was curious if there is documentation on how to make this happen for javascript-language functions that are user functions... ?
On Tue, 14 Jul 2009 19:57:32 -0600, Ben wrote:
Hi,
anyhow, my point: Zend uses a php doc standard of using @param to identify paramters and then tooltips them as you complete a function name within you application. geany does this for language built-ins but I was curious if there is documentation on how to make this happen for javascript-language functions that are user functions... ?
not really sure what you mean with "user functions". Are you talking about embedded Javascript in HTML/PHP files?
And if so, what exactly doesn't work and how should it work?
Regards, Enrico
2009/7/16 Enrico Tröger enrico.troeger@uvena.de
On Tue, 14 Jul 2009 19:57:32 -0600, Ben wrote:
Hi,
anyhow, my point: Zend uses a php doc standard of using @param to identify paramters and then tooltips them as you complete a function name within you application. geany does this for language built-ins but I was curious if there is documentation on how to make this happen for javascript-language functions that are user functions... ?
not really sure what you mean with "user functions". Are you talking about embedded Javascript in HTML/PHP files?
And if so, what exactly doesn't work and how should it work?
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.asc
Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
um, I mean, for example, functions I've created take for example:
function do_stuff(param1,param2,param3) { return {param1,param2,param3 }
if for some strange reason this were built into the system, take php's str_replace, if I type 'str_r' I get a tooltip suggesting str_replace, and if I type it all the way out I get str_replace(string needle,string haystack,[optional param1],[optional param2]) in a tooltip
is geany designed to do this for things like this given my example, or am I doing it wrong? is there some sort of /* * @param mixed param1 * [...] *******************************************/ syntax that I am missing?
2009/7/16 Enrico Tröger enrico.troeger@uvena.de:
anyhow, my point: Zend uses a php doc standard of using @param to identify paramters and then tooltips them as you complete a function name within you application. geany does this for language built-ins but I was curious if there is documentation on how to make this happen for javascript-language functions that are user functions... ?
not really sure what you mean with "user functions". Are you talking about embedded Javascript in HTML/PHP files?
I believe he means 'user created functions'. Geany only auto-completes predefined functions, not 'user created' ones...
+1 for this request!
-H-
On Thu, 16 Jul 2009 17:09:48 +0200, Harold wrote:
2009/7/16 Enrico Tröger enrico.troeger@uvena.de:
anyhow, my point: Zend uses a php doc standard of using @param to identify paramters and then tooltips them as you complete a function name within you application. geany does this for language built-ins but I was curious if there is documentation on how to make this happen for javascript-language functions that are user functions... ?
not really sure what you mean with "user functions". Are you talking about embedded Javascript in HTML/PHP files?
I believe he means 'user created functions'. Geany only auto-completes predefined functions, not 'user created' ones...
+1 for this request!
This isn't supported by the PHP parser. At least I don't think it's easily possible to add support for this.
The best thing would be if someone would rewrite the PHP parser to not use regular expressions and instead do full parsing of PHP code, that would solve a whole bunch of problems. But as usual, it needs someone to do it.
Regards, Enrico
On Thu, 16 Jul 2009 09:07:53 -0600, Ben wrote:
2009/7/16 Enrico Tröger enrico.troeger@uvena.de
On Tue, 14 Jul 2009 19:57:32 -0600, Ben wrote:
Hi,
anyhow, my point: Zend uses a php doc standard of using @param to identify paramters and then tooltips them as you complete a function name within you application. geany does this for language built-ins but I was curious if there is documentation on how to make this happen for javascript-language functions that are user functions... ?
not really sure what you mean with "user functions". Are you talking about embedded Javascript in HTML/PHP files?
And if so, what exactly doesn't work and how should it work?
um, I mean, for example, functions I've created take for example:
function do_stuff(param1,param2,param3) { return {param1,param2,param3 }
if for some strange reason this were built into the system, take php's str_replace, if I type 'str_r' I get a tooltip suggesting str_replace,
This is a called an auto-completion.
and if I type it all the way out I get str_replace(string needle,string haystack,[optional param1],[optional param2]) in a tooltip
This is called a calltip. (just for clarity)
is geany designed to do this for things like this given my example, or am I doing it wrong?
As I just said in the other reply in this thread, it's currently not supported by the PHP parser we use (based on the one from the CTags project).
The difference to the standard PHP API is that the standard API tags are created from the a list of the PHP API. See http://git.geany.org/geany/tree/scripts/create_php_tags.php for details. So the detailed argument list information come from PHP's funcsummary.txt and are stored in Geany's php.tags (usually found in /usr/share/geany/php.tags).
Regards, Enrico
so hypothetically, I could add to this list and get intuitive calltips?
2009/7/16 Enrico Tröger enrico.troeger@uvena.de
On Thu, 16 Jul 2009 09:07:53 -0600, Ben wrote:
2009/7/16 Enrico Tröger enrico.troeger@uvena.de
On Tue, 14 Jul 2009 19:57:32 -0600, Ben wrote:
Hi,
anyhow, my point: Zend uses a php doc standard of using @param to identify paramters and then tooltips them as you complete a function name within you application. geany does this for language built-ins but I was curious if there is documentation on how to make this happen for javascript-language functions that are user functions... ?
not really sure what you mean with "user functions". Are you talking about embedded Javascript in HTML/PHP files?
And if so, what exactly doesn't work and how should it work?
um, I mean, for example, functions I've created take for example:
function do_stuff(param1,param2,param3) { return {param1,param2,param3 }
if for some strange reason this were built into the system, take php's str_replace, if I type 'str_r' I get a tooltip suggesting str_replace,
This is a called an auto-completion.
and if I type it all the way out I get str_replace(string needle,string haystack,[optional param1],[optional param2]) in a tooltip
This is called a calltip. (just for clarity)
is geany designed to do this for things like this given my example, or am I doing it wrong?
As I just said in the other reply in this thread, it's currently not supported by the PHP parser we use (based on the one from the CTags project).
The difference to the standard PHP API is that the standard API tags are created from the a list of the PHP API. See http://git.geany.org/geany/tree/scripts/create_php_tags.php for details. So the detailed argument list information come from PHP's funcsummary.txt and are stored in Geany's php.tags (usually found in /usr/share/geany/php.tags).
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.asc
Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
On Thu, 16 Jul 2009 09:31:51 -0600, Ben wrote:
so hypothetically, I could add to this list and get intuitive calltips?
Yes.
Regards, Enrico
On Thu, 16 Jul 2009 17:18:09 +0200 Enrico Tröger enrico.troeger@uvena.de wrote:
The best thing would be if someone would rewrite the PHP parser to not use regular expressions and instead do full parsing of PHP code, that would solve a whole bunch of problems. But as usual, it needs someone to do it.
Agreed; info for anyone interested - the PHP parser used to be non-regex based, but was changed 'to support PHP 5 syntax': http://ctags.svn.sourceforge.net/viewvc/ctags?view=rev&revision=487
BTW there's a 'fix' in ctags r729 for parsing tags from comments: http://ctags.svn.sourceforge.net/viewvc/ctags/trunk/php.c?view=log
But not being a PHP user myself, I can't say if it's OK to apply for us.
Regards, Nick
On Fri, Jul 17, 2009 at 7:15 AM, Nick Treleaven < nick.treleaven@btinternet.com> wrote:
On Thu, 16 Jul 2009 17:18:09 +0200 Enrico Tröger enrico.troeger@uvena.de wrote:
The best thing would be if someone would rewrite the PHP parser to not use regular expressions and instead do full parsing of PHP code, that would solve a whole bunch of problems. But as usual, it needs someone to do it.
Agreed; info for anyone interested - the PHP parser used to be non-regex based, but was changed 'to support PHP 5 syntax': http://ctags.svn.sourceforge.net/viewvc/ctags?view=rev&revision=487
BTW there's a 'fix' in ctags r729 for parsing tags from comments: http://ctags.svn.sourceforge.net/viewvc/ctags/trunk/php.c?view=log
But not being a PHP user myself, I can't say if it's OK to apply for us.
Regards, Nick _______________________________________________ Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
Sorry -- I don't understand what this means to me? and does the same thing apply to Javascript? that's really the language I'm hoping to add the feature for..
On Fri, 17 Jul 2009 09:41:14 -0600 Ben West mrgenixus@gmail.com wrote:
Sorry -- I don't understand what this means to me? and does the same thing apply to Javascript? that's really the language I'm hoping to add the feature for..
I was just commenting on what Enrico said, that's why I changed the subject ;-)
Basically to get calltips for user PHP files the PHP parser would need to be rewritten; it's similar for the JavaScript parser, only easier as that doesn't use regexes.
Regards, Nick
but probably outside my skills, unfortuneately
On Fri, Jul 17, 2009 at 10:35 AM, Nick Treleaven < nick.treleaven@btinternet.com> wrote:
On Fri, 17 Jul 2009 09:41:14 -0600 Ben West mrgenixus@gmail.com wrote:
Sorry -- I don't understand what this means to me? and does the same
thing
apply to Javascript? that's really the language I'm hoping to add the feature for..
I was just commenting on what Enrico said, that's why I changed the subject ;-)
Basically to get calltips for user PHP files the PHP parser would need to be rewritten; it's similar for the JavaScript parser, only easier as that doesn't use regexes.
Regards, Nick _______________________________________________ Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany