Priority
Major
Type
Feature 
State
Reopened 
Assignee
Valeria Nikolaenko 
Subsystem
PHP frameworks 
Affected versions
Fix for
  • Submitted by   Alexey Gopachenko
    10 months ago (10 Oct 2009 15:46)
  • Updated by   Carl Benson
    9 days ago (28 Aug 2010 01:34)
WI-390 Smarty braces can't be redefined
18
Some projects use {% %} instead of { }
Comments (16)
 
History
 
Linked Issues (0)
 
Alexander Makarov
  Alexander Makarov
17 Oct 2009 23:26
(10 months ago)
Smarty delimiter is totally configurable so there should be an option.
Mark Stroeve
  Mark Stroeve
16 Nov 2009 23:45
(9 months ago)
I'am reviewing your EAP product for possible future use in our company. We are using Smarty as a tpl language and also have custom delimiters <?smarty ?>. It would be great if you could manage to add this as a option to your final product. Some other php IDE's also have this config option available.
Mark Stroeve
  Mark Stroeve
24 Dec 2009 15:30
(8 months ago)
Is this also available in the current 94.48 version? I can't seem to find it.
Alexey Gopachenko
  Alexey Gopachenko
24 Dec 2009 16:15
(8 months ago)
This is an UNRESOLVED request.
Mark Stroeve
  Mark Stroeve
23 Feb 2010 13:47
(6 months ago)
Could you please incorporate this request in the next EAP? We want to test/review the Smarty functionality of your product. But we use different delimiters.
Alexey Gopachenko
  Alexey Gopachenko
23 Feb 2010 15:06
(6 months ago)
@Mark We plan to go back to weekly EAP schedule, so its really unlikely that this feature will be implemented in next one, but we will address it soon.

Also I'd suggest you wait until official beta with your review. It should be available in a month.
Valeria Nikolaenko
  Valeria Nikolaenko
27 Feb 2010 11:37
(6 months ago)
@Mark So, for example, a pair of 'if' tags will look like <?smarty if?> <?smarty/ if?>, won't it?
Valeria Nikolaenko
  Valeria Nikolaenko
27 Feb 2010 12:48
(6 months ago)
Any way, there may be some bugs with new delimiters, but those are supported now: {}, <{ }>, <!{ }>, <?smarty ?>, <% %>, <? ?>. You may adjust delimiters in Project Setting/PHP. If you get problems switching to custom delimiters do not hesitate to report =) Thanks.
Mark Stroeve
  Mark Stroeve
27 Feb 2010 13:01
(6 months ago)
@Valeria, that's correct.
Boris Fresow
  Boris Fresow
01 Mar 2010 14:07
(6 months ago)
@Valeria Thanks for that fix and actually I don't want to be the person complaining - but would it by any means be possible (as you obviously seem to have a parameterizable parser) to be able to manually define the start / ending delimeters? We for example use and I'm pretty sure there are a lot of other variations as it's basically a custom choice in smarty.
Sebastian Hartte
  Sebastian Hartte
01 Mar 2010 16:23
(6 months ago)
I also wanted to add that the delimiter is customizable in smarty (not a workaround or hack):
http://www.smarty.net/manual/en/variable.left.delimiter.php
http://www.smarty.net/manual/en/variable.right.delimiter.php

Providing text-boxes to customize the delimiter used by WebIDE would be the natural way of solving this.
Valeria Nikolaenko
  Valeria Nikolaenko
01 Mar 2010 16:29
(6 months ago)
Yeh, I know delimiters can be custom, but actually it demands rewriting lexer, what probably will cause huge ammount of bugs... Any way, I'm keeping that in mind and will resolve it as soon as possible. Ok, yeh, I sould have lived the issue opened, so I'll reopen it...
Wessel Kranenborg
  Wessel Kranenborg
03 Jun 2010 13:08
(3 months ago)
I also want this feature. We use {# #} as delimiter which won't work in PHPStorm. This stops me from buying PHPStorm
Manfred
  Manfred
28 Jul 2010 15:23
(5 weeks ago)
We use {| |} as delimiters. It would be very nice if the next version could support them.
Carl Benson
  Carl Benson
02 Aug 2010 10:25
(4 weeks ago)
We use {{ } (sorry cannot enter the last curly brace) as delimiters. If this can be incorporated in the next version I will buy PHPStorm.
Carl Benson
  Carl Benson
28 Aug 2010 01:34
(9 days ago)
I just bought phpstorm. Any news on this? We really need these custom delimiters {{ } (and end curly brace), so in other words two start curlies and two end curlies.

Thanks