Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHPDoc Comments in Notepad++?

I very much enjoy working in Notepad++, but I haven't yet found a plugin to automatically do PHPDoc style comments. Other PHP IDE's (Eclipse, NetBeans, ZendStudio) include this feature, and it's quite handy.

Basically what I want is, if on the line above a function definition or class definition I type in:

/**

It automatically populates the PHPdoc format (something like the following for a function):

/**  
 * 
 * @param $first_argument
 * @param $second_argument
 * @return
 */

Then when I type in additional lines to the comment, it starts each line with an asterisk.

Is there a NP++ plugin that accomplishes this, or a way to tweak NP++ to make it work?

like image 532
Travis Avatar asked Feb 03 '11 22:02

Travis


2 Answers

Try DocIt, it works fine, after install move cursor before function and press CTRL + ALT + SHIFT + D to add comments.

Download: https://sourceforge.net/projects/nppdocit/postdownload

enter image description here

like image 86
Nolan Hyde Avatar answered Sep 23 '22 16:09

Nolan Hyde


The question is old...but try DoxyIt plugin from plug manager. It works exactly as you need.

like image 32
ovnia Avatar answered Sep 23 '22 16:09

ovnia