Project
PhpStorm/WebStorm
Priority
Major
Type
Feature
State
Fixed
Assignee
Valeria Nikolaenko
Subsystem
PHP frameworks
Fix versions
EAP 98.91
Affected versions
No Affected versions
  • Created by   Alexey Gopachenko
    2 years ago (10 Oct 2009 15:46)
  • Updated by   Alexey Gopachenko
    12 months ago (17 May 2011 13:12)
 
WI-390 Smarty braces can't be redefined
21
Issue is visible to: All Users
  The issue is visible to the selected user group only
Some projects use {% %} instead of { }
Comments (21)
 
History
 
Linked Issues (?)
 
Alexander Makarov
  Alexander Makarov
17 Oct 2009 23:26
2 years ago
Smarty delimiter is totally configurable so there should be an option.
Mark Stroeve
  Mark Stroeve
17 Nov 2009 00:45
2 years 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 16:30
2 years 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 17:15
2 years ago
This is an UNRESOLVED request.
Mark Stroeve
  Mark Stroeve
23 Feb 2010 14:47
2 years 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 16:06
2 years 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 12:37
2 years 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 13:48
2 years 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.
Related Changes
Resolved Date
2 years ago (27 Feb 2010 13:48)
State
In ProgressFixed
Fixed In version
<lost change><lost change>
Mark Stroeve
  Mark Stroeve
27 Feb 2010 14:01
2 years ago
@Valeria, that's correct.
Boris Fresow
  Boris Fresow
01 Mar 2010 15:07
2 years 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 17:23
2 years 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 17:29
2 years 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...
Related Changes
Resolved Date
2 years ago (27 Feb 2010 13:48) None
State
FixedReopened
Wessel Kranenborg
  Wessel Kranenborg
03 Jun 2010 13:08
23 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
21 months 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
21 months 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
20 months 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
Paymon Yau
  Paymon Yau
08 Sep 2010 20:36
20 months ago
Any updates on this? we use {| |} delimiters and would be nice if the editor supported it.
Alexey Gopachenko
  Alexey Gopachenko
08 Sep 2010 20:46
20 months ago
This is planned to 2.0 and is developed right now.
Related Changes
State
ReopenedIn Progress
Fixed In version
<lost change><lost change>
Valeria Nikolaenko
  Valeria Nikolaenko
29 Sep 2010 13:08
19 months ago
The feature is implemented. See screenshot attached.
It will appear in 2.0 and is currently available in EAP.
Related Changes
Resolved Date
19 months ago (29 Sep 2010 13:08)
State
In ProgressFixed
Fixed In version
<lost change><lost change>
Thijs
  Thijs
08 Oct 2010 14:17
19 months ago
Using the EAP built yesterday and it loses this setting if I load another project in the same window. Is it project specific? Can it also be set global?
Andriy Bazanov
  Andriy Bazanov
08 Oct 2010 14:34
19 months ago
@Thijs
It's project specific