Smarty: Tags Matching and Unpaired Tags Errors

Hello, today we would like to show you other improvements we have prepared in PHP Smarty Framework. Let's talk about highlighting of matching tags and error reporting of unpaired ones which will be available in NetBeans 7.3.

Tags Matching

Some of your enhancements talked  about paired tags matching to be able to see matching tags at first glance.We have good news for you that this feature you can try out already in our latest PHP Development builds and of course later in NetBeans 7.3.

Tags Matching in Smarty

Unpaired Tags Errors

To make easier detecting of template syntax issues, we provide basic tags pairing. If you forgot to begin some paired Smarty tag or you end it unexpectedly you should get error hint which complains about your issue.

Tags Pairing in Smarty

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).

Comments:

great news! finally, this got implemented.

Posted by constantine on September 18, 2012 at 04:54 PM CEST #

And what about twig? Does it shares some kind of common codebase?

Posted by guest on September 18, 2012 at 05:56 PM CEST #

It's not easily possible since every framework comes with its custom lexer and parser. But feel free to raise new enhancements against our components and believe that we will try to do our best. :)

Posted by guest on September 18, 2012 at 11:12 PM CEST #

Yes, Twig support would be nice :-)

Posted by Christian on September 26, 2012 at 02:03 PM CEST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

This blogs is written by NetBeans developers who contribute to the PHP support mainly.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today