PHPDoc trigger for Gedit

To every one who love Gedit and programming in PHP. This utility is a “standard” PHPDoc style comment generator. Just put the /** trigger word above function declaration or bellow <?php tag or above var/public/protected etc. declaration and hit Enter … and you have a very nice standard PHPDoc style header just in right place. Really just that easy. So there is no excuse anymore to not comment your code. PHPDoc commented source code is easy readable by many PHP IDEs (Eclipse, NetBeans, etc.) for example for auto completition feature. You can also auto generate some kind of documentation for your program too. Written in python.
Ok how to install? You ask. Simply unpack the archive into $HOME/.gnome2/gedit/plugins/ directory and activate via plugin manager Edit/Preferences/Plugins inside Gedit.


I finally decided to install a new ubuntu 11.10 on my desktop computer. Unfortunately (or luckily) after that had a coding task in php. But my PHPDoc plugin doesn't work in gedit3 because of the new plugin system. (Aaargh!) So I quickly hacked a gedit3 version. If you didn't know in gedit3 plugins need to be installed into $HOME/.local/share/gedit/plugins/ directory. After that the de/activation is the same as in gedit2 from Plugins tab in Preferences dialog.

File download:

For gedit 2.x version:

For gedit 3.x version:

Leave a Reply here


Submited by troex on June 04, 2011. Reply to this

That is very nice! It save my time, you should add /** trigger in plugin about dialog

Submited by alex on June 23, 2011. Reply to this

This is great. Thanks!

Submited by simbo on September 17, 2011. Reply to this

Thanks! I love you! Please marry me!

Submited by Nico on November 01, 2011. Reply to this

Thanks! Thanks! Thanks!

Submited by Ze Big Duck on November 02, 2011. Reply to this

Yeah, thank you very much for gedit 3.x version ! Great job, very useful tool

Submited by Anees on July 21, 2012. Reply to this

Its working fine under php tag but not above function :( Why its so ?

Submited by Author on July 21, 2012. Reply to this

@Anees: Can you send me a code snippet where you tried and not worked?

Submited by Ege Sertçetin on September 16, 2013. Reply to this

Thanks :-)

Submited by Big Fan on September 16, 2014. Reply to this

Version for Gedit 3.10?