Smarty [edit]

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:

Image:SmartyConfigEditor.jpg

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.

Image:SmartyHighlighting.jpg

Content Assist

The Smarty content assist supports the following code completions:

Image:SmartyCodeAssist.jpg

Image:SmartyCodeAssistPref.gif

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.

Image:SmartyTypingPref.jpg

Code Validation

The template editor has included smarty validation which supports basic validation (error detection) for smarty files.

Image:SmartyValidation.jpg

Outline

The Smarty Template editor outline supports all kinds of template nodes as well as outlining structure of the nested languages.

Image:SmartyOutline.jpg

Code Formatting

The editor also provides a code formatter for the Smarty template files.

Image:SmartyFormattingPref.jpg

Folding

The editor supports folding for many of the Smarty blocks of code. This preferences page illustrate the types of folds that are supported:

Image:SmartyFoldingPref.jpg