Re: Prototype Comments
| From: | Sascha Schumann | Date: | Thu, 12 Nov 1998 23:11:39 +0000 |
| Subject: | Re: Prototype Comments | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-2362@lists.php.net to get a copy of this message | ||
On Thu, 12 Nov 1998, Rasmus Lerdorf wrote:
> Danny, Christian and others.. Thanks for your help in getting those
> prototype comments into the files. This is going to make it much easier
> to autogenerate a complete function listing. There are still a bunch of
> files to be done, so if anybody reading this list has some spare time,
> please go right ahead and find yourself some built-in functions and add
> the appropriate prototype comments.
>
> I am also wondering if it might be possible to create some sort of data
> file that could be read by various editors. I am thinking along the lines
> of highlighting a word in your editor and hitting a key and it looks up
> this word in the data file and shows you the full prototype and one-line
> description for that function. It could even do function name completion,
> I suppose. Anybody have any experience teaching things like vim, Emacs,
> nedit, etc. to do stuff like this? I think it could be a nifty little
> helper for all the PHP developers out there.
Sounds like you want to extend the ctags algorithm. The man page lists
commands for vim and emacs already.
Example:
If you want to change the function stack_top,
vim -t stack_top will open
stack.c and jump to line 64. Looking for another function? Type in ":tag
php3_" and skip through all function names beginning with php3_ ...
Sascha
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net