Home Download Buy Blog Forum Support

How can I insert comments too for PEAR standard in PHP?

How can I insert comments too for PEAR standard in PHP?

Postby dmak on Wed Jun 27, 2012 9:28 pm

So I'm running PHPCS and PHPMD with Sublime and I was wondering if there is a way to have classes insert all the required inline documentation required by PEAR.

For example:
Code: Select all
/**
* Short description for class
*
* Long description for class (if any)...
*
* @category   CategoryName
* @package    PackageName
* @author     Original Author <author@example.com>
* @author     Another Author <another@example.com>
* @copyright  1997-2005 The PHP Group
* @license    http://www.php.net/license/3_01.txt  PHP License 3.01
* @version    Release: @package_version@
* @link       http://pear.php.net/package/PackageName
* @see        NetOther, Net_Sample::Net_Sample()
* @since      Class available since Release 1.2.0
* @deprecated Class deprecated in Release 2.0.0
*/
class Test
{
}


Also, I know in Eclipse for Java, when you create comments with /*, every time you hit the return key, it will automatically begin the line with a asterisk. Is there a way to do this for PHP too since it will come in handy for PEAR standard?
dmak
 
Posts: 1
Joined: Wed Jun 27, 2012 9:24 pm

Re: How can I insert comments too for PEAR standard in PHP?

Postby baocaixiong on Thu Mar 07, 2013 3:07 pm

我说中文。我想我遇到的相同的问题。
baocaixiong
 
Posts: 1
Joined: Thu Mar 07, 2013 3:06 pm

Re: How can I insert comments too for PEAR standard in PHP?

Postby robertcollier4 on Thu Mar 07, 2013 3:13 pm

robertcollier4
 
Posts: 153
Joined: Sun Feb 24, 2013 5:37 pm


Return to General Discussion

Who is online

Users browsing this forum: Google [Bot] and 20 guests

cron