Smarty: Configurable Comments and Code Templates

Posted by Martin Fousek on Oracle Blogs See other posts from Oracle Blogs or by Martin Fousek
Published on Mon, 27 Aug 2012 11:28:12 +0000 Indexed on 2012/08/27 21:49 UTC
Read the original article Hit count: 327

Filed under:

Hello, today we would like to show you few improvements we have prepared in PHP Smarty Framework for NetBeans 7.3. So let's talk about adjustable toggle comment action and code templates.

Configurable Comments

As some of you requested we implemented toggle comment action with adjustable behavior. In NetBeans 7.3 you can choose in Options between commenting as a "Smarty comments everywhere" or "Language sensitive comments" in Smarty Templates.

Configurable Comments in Options

Toggle comment language sensitive:

Toggle comment as Smarty comment everywhere:


Code Templates

In NetBeans 7.3 we will provide by default many code templates inside Smarty templates or directly inside Smarty tags. Available should be code templates for all built-in or custom functions and modifiers of Smarty 3.x. Besides that you should be able to define additional custom templates easily in Options -> Editor -> Code Templates for "Smarty Templates" or directly for "Smarty Markup" (which means code templates inside Smarty tag).

You can also take advantage of selection's template which are able to wrap your code with chosen Smarty tag.

That's all for today. As always, please test it and report all the issues or enhancements you find in NetBeans BugZilla (component php, subcomponent Smarty).

© Oracle Blogs or respective owner

Related posts about /Features