Skip to content

Provides really comfortable generation of phpDocumentor doc blocks for PHP4 & 5.

Notifications You must be signed in to change notification settings

vsushkov/vim-phpdocumentor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

This is a mirror of http://www.vim.org/scripts/script.php?script_id=1355

PDV (phpDocumentor for Vim)
========================

Version: 1.0.0

Copyright 2005 by Tobias Schlitt <[email protected]>
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
documents:

- Classes
- Methods/Functions
- Attributes

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,
int, string...).

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.

Changelog
=========

Version 1.0.0
-------------------

* 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.

About

Provides really comfortable generation of phpDocumentor doc blocks for PHP4 & 5.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Vim Script 100.0%