An Oracle blog about NetBeans for PHP

Twig Code Completion

Hi all! After few weeks we have a new feature for you which will be available in upcoming NetBeans 7.3. It's about new code completion in Twig files! So let us introduce it a bit.

Now we hopefully support all of Twig built-in elements. It means Tags, Filters, Functions, Tests and Operators (see Twig documentation for more information).

All elements are also documented, so if you don't know what which element does, just read it in the IDE documentation window! We try to resolve some Completion Context to suggest you only the most corresponding element types, but it's not so visible, since almost everything can be used everywhere in Twig files ;)

Twig Code Completion

And that's all for today and as usual, please test it and if you find something strange, don't hesitate to file a new issue (product php, component Twig). Thanks a lot!

Join the discussion

Comments ( 7 )
  • guest Friday, September 28, 2012

    Hey, that was fast! And helps a lot. Thank you!

  • guest Friday, September 28, 2012

    A good thing in Netbeans is that good third party modules can get merged into Netbeans itself and keep going better. Nice Work.

  • guest Thursday, November 8, 2012

    What about twig code inside php files?

    Right now that generates errors and I can't find a setting for it. Only thing I can find is the association of the twig extension to the MIME type in the settings.

  • Ondrej Brejla Thursday, November 8, 2012

    We don't support embedded Twig language right now.

  • Ninj Thursday, November 22, 2012

    Hey, thanks for this promising feature. I'm using NB 7.3 b2, i see that code templates don't work for TWIG although the language is listed in Code Template option pane. Will that be supported too? Thank you!

  • Ondrej Brejla Thursday, November 22, 2012
  • tam Friday, March 15, 2013

    utterly useless in the current state; it is actually interfering with actual coding of mixed template (twig/html/js/css).

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.