Smarty Options

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

Element Description

Smarty version

Select Smarty2 or Smarty3. 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.

Subdirectory level for TPL file scanning

Set how many levels down project subdirectories NetBeans IDE should scan for Smarty template files.

If your .tpl files are deeper in your directory than this setting, your project is not recognized as a Smarty project. However, setting this value to higher than 1 can slow the IDE's handling of all PHP projects.



Related Topics

Developing Applications with NetBeans IDE,

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