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.

Comments:

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 03: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 05:05 AM CET #

Oops! Sorry I sent my comment about the link before Symen's comment.

Posted by Ziad on January 21, 2009 at 05:06 AM 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 22, 2009 at 09:02 PM 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 01:32 AM CET #

Ah well, no worries, I can live with that.
Thanks for clearing that out Petr.

Posted by azrael_valedhel on January 23, 2009 at 11:28 PM 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 08:10 AM 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 08:13 AM CET #

thanks

Posted by şiir on January 27, 2009 at 11:38 AM 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 04:02 AM 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 guest on July 08, 2009 at 09:18 PM 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 guest on July 08, 2009 at 09:18 PM CEST #

Thank you cok işime yaradı Admin

Posted by mirc on August 22, 2009 at 09:25 PM CEST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

This blogs is written by NetBeans developers who contribute to the PHP support mainly.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today