# Options Window: PHP: Frameworks & Tools: Smarty

In this panel you set global options for projects that contain Smarty templates (.tpl files).

Element | Description
--- | ---
Smarty version | Select Smarty2 or Smarty3 in the drop-down list. This field affects the parsing of Smarty template (`.tpl`) files. If you select Smarty3, curly brackets are recognized as JavaScript code if they are surrounded by whitespaces. If you select Smarty2, all curly brackets are recognized as Smarty delimiters, unless you set custom delimiters.
Open delimiter/ Close delimiter | Set delimiters globally for Smarty templates. You can override global delimiter settings for individual projects. Open the project's Properties and navigate to the Frameworks > Smarty category. The project must include a .tpl file.
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 Smarty comment everywhere | When selected, the selected line or lines of code are designated as a comment using Smarty 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 Smarty 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 Smarty elements are not affected.

Related Topics

Developing Applications with NetBeans IDE,

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