Contents |
Overview
Aptana Smarty support is part of the PHP development support in the Aptana Studio.
The PHP plug-in adds a Smarty template editor and Smarty Configuration file editor to the Aptana IDE, as well as a enchanted Smarty support for Aptana PHP editor and other enhancements.
We've assembled a short Smarty basic tutorial that will provide you a quick introduction on how to create a template file and get you started.
To the moment, the Aptana PHP Plug-in supports the following Smarty features
Configuration File Editor
Smarty template support arrives with a special editor for the Smarty configuration files. Currently, the editor supports the following features:
- Syntax highlighting
- Outline
- Folding
Syntax Highlighting
The Smarty Template editor features rich syntax highlighting for 'Smarty' markup as well as for other languages which may be contained inside the template files.
Content Assist
The Smarty content assist supports the following code completions:
- Built-in and custom Smarty functions
- Smarty modifiers
- Attributes for Smarty functions
- Variables used in Smarty template
- Variables declared in Smarty configuration files
- Custom modifiers and functions registered for PHP projects in the workspace
- Variables that may be passed to the smarty templates from the projects in the workspace
- Files in the attributes of file type
Typing and auto indent
The editor supports auto indent of nested tags according to the parent's tag, as well as automatic closing on complex tags and auto insertion of matching characters.
Code Validation
The template editor has included smarty validation which supports basic validation (error detection) for smarty files.
Outline
The Smarty Template editor outline supports all kinds of template nodes as well as outlining structure of the nested languages.
Code Formatting
The editor also provides a code formatter for the Smarty template files.
Folding
The editor supports folding for many of the Smarty blocks of code. This preferences page illustrate the types of folds that are supported:









