PDV - phpDocumentor for Vim : Provides really comfortable generation of phpDocumentor doc blocks for PHP4 & 5.
| script karma
Downloaded by 12853
Comments, bugs, improvements
script versions (upload new version)
|PDV (phpDocumentor for Vim)
Copyright 2005 by Tobias Schlitt <email@example.com>
Inspired by phpDoc script for Vim by Vidyut Luther (http://www.phpcult.com/).
Provided under the GPL (http://www.gnu.org/copyleft/gpl.html).
This script provides functions to generate phpDocumentor conform
documentation blocks for your PHP code. The script currently
All of those supporting all PHP 4 and 5 syntax elements.
Beside that it allows you to define default values for phpDocumentor tags
like @version (I use $id$ here), @author, @license and so on.
For function/method parameters and attributes, the script tries to guess the
type as good as possible from PHP5 type hints or default values (array, bool,
You can use this script by mapping the function PhpDoc() to any
key combination. Hit this on the line where the element to document
resides and the doc block will be created directly above that line.
* Created the initial version of this script while playing around with VIM
scripting the first time and trying to fix Vidyut's solution, which
resulted in a complete rewrite.
For example include into your .vimrc:
inoremap <C-P> <ESC>:call PhpDocSingle()<CR>i
nnoremap <C-P> :call PhpDocSingle()<CR>
vnoremap <C-P> :call PhpDocRange()<CR>
This includes the script and maps the combination <ctrl>+p
to the doc functions.
Click on the package to download.
ip used for rating: 126.96.36.199
||- Fixed commenting of tab indented code.
- Fixed some smaller parsing bugs.
- Fixed bug with call-by-reference parameters.
- ATTENTION: This version contains already some code for version 1.1.0, which does not work by now!