Options Window: PHP: Frameworks & Tools: Twig

In this panel you set global options for projects that contain Twig templates.

Element Description

Toggle comment

Specify how code is designated as a comment in when you choose Toggle Comment in the Source menu or use a keyboard shortcut.

    as Twig comment everywhere

When selected, the selected line or lines of code are designated as a comment using Twig syntax ({# ... #}).

    language sensitive

When selected, the editor determines the language of the code based on the position of your insert cursor and all elements in that language in the selected line or lines of code are designated as a comment using the syntax of that language.

For example, if a line of code contains HTML and Twig elements and your insert cursor is in an HTML element, when you toggle comments all the HTML elements in the selected line or lines of code are designated as comments using HTML syntax (<!-- ... -->) and the Twig elements are not affected.



Related Topics

Developing Applications with NetBeans IDE,

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.