Hi Mofi,
I have Smarty template files. Smarty is template engine with a mix of PHP & HTML content.
I added the "TPL" extension to the PHP wordfile. The code highlighting is perfect. (Better than adding the "TPL" extension to the HTML wordfile). But the code folding with the PHP wordfile doesn't work like a charm.
Here you can see a typical "details.tpl". The special in my case is, that we use "[{" and "}]" instead of the normal smarty brackets "{" and "}".
What should I add to the PHP wordfile, so that the HTML commands and Smarty brackets are used for code folding?
I have Smarty template files. Smarty is template engine with a mix of PHP & HTML content.
I added the "TPL" extension to the PHP wordfile. The code highlighting is perfect. (Better than adding the "TPL" extension to the HTML wordfile). But the code folding with the PHP wordfile doesn't work like a charm.
Here you can see a typical "details.tpl". The special in my case is, that we use "[{" and "}]" instead of the normal smarty brackets "{" and "}".
Code: Select all
[{$smarty.block.parent}]
[{assign var="oConfig" value=$oView->getConfig()}]
[{assign var="oBadges" value=$oDetails->getBadges()}]
[{if $oViewConf->showInDetail() && $oBadges}]
<div class="details-badges container">
<div class="row">
[{foreach key="oBadges" from=$oBadges->getArray() item="oBadge"}]
<p>[{$oBadge->getTitle()}]</p>
[{/foreach}]
</div>
</div>
[{/if}]