Fwd: Model-based code insight and completion in NetBeans
I noticed article about developing CakePHP in NetBeans. Although Symen describes, how to improve PHP Doc for Cake PHP classes to help NetBeans to find out a type of a class property, this principle can be used for every framework and for your classes as well. Thanks to Symen for this article.

Thanks Petr!,
The article is down now for a few grammatical spelling changes, but it should be up again soon...
Posted by Symen Timmermans on January 21, 2009 at 11:51 AM CET #
The link to the article does not lead to the article. Can you please provide the correct URL.
Thanks
Posted by Ziad on January 21, 2009 at 01:05 PM CET #
Oops! Sorry I sent my comment about the link before Symen's comment.
Posted by Ziad on January 21, 2009 at 01:06 PM CET #
A complete offtopic:
Is it possible to add custom syntax hilightning into netbeans? Like, my own simple and fast templating class lets me use short syntax like:
{=$var} instead of <?php echo $var; ?>
and
{{ //phpcode }} instead of <?php //phpcode ?>
but I would like to add some rule so Netbeans would treat {{ like php opening tag, and }} as closing one, if thats possible.
Any not too messy way of doing that? :)
Anyway - great job guys, your recent changes to nb are great, its getting better and better all the time! Thanks for the hard work :)
Posted by azrael_valedhel on January 23, 2009 at 05:02 AM CET #
Hi Azrael,
this is not possible. The current implementation of the parser has hardcoded the possible delimiters.
Posted by Petr on January 23, 2009 at 09:32 AM CET #
Ah well, no worries, I can live with that.
Thanks for clearing that out Petr.
Posted by azrael_valedhel on January 24, 2009 at 07:28 AM CET #
It seems that with a little help Netbeans 6.5 can do completion and code insight on more frameworks.
For CodeIgniter code autocompletion in Netbeans 6.5 read this blogpost:
http://www.mybelovedphp.com/2009/01/27/netbeans-revisited-code-completion-for-code-igniter-ii/
And on the same site a post about setting up code completion in the Kohana framework:
http://www.mybelovedphp.com/2009/01/27/netbeans-code-completion-for-the-kohana-framework/
Posted by MyBelovedPHP on January 27, 2009 at 04:10 PM CET #
What about the bloggers suggestion in above post to put the code completion helper files in the nbproject folder. Can that do any harm?
Posted by MyBelovedPHP on January 27, 2009 at 04:13 PM CET #
thanks
Posted by şiir on January 27, 2009 at 07:38 PM CET #
To MyBelovedPHP:
interesting workaround to create completion helper files. Putting it into nbproject, shouldn't cause any harm
Posted by radek on January 28, 2009 at 12:02 PM CET #
Very insightful articles, a great inspiration to me to allow me to reprint this article to my website http://www.on-sale.cc ?
Posted by 218.86.50.46 on July 09, 2009 at 04:18 AM CEST #
Very insightful articles, a great inspiration to me to allow me to reprint this article to my website http://www.on-sale.cc ?
Posted by 218.86.50.46 on July 09, 2009 at 04:18 AM CEST #
Thank you cok işime yaradı Admin
Posted by mirc on August 23, 2009 at 04:25 AM CEST #