清洁格式smarty html coda 2?

时间:2017-12-20 19:17:55

标签: smarty coda

我使用Coda 2,您知道一种格式化干净智能代码的方法吗?有什么要重新排序所有标签?或者也许在Mac上的其他优秀编辑器上?

从那起:

{if $order.state_name == "Pending"}
    {$order.state_name|escape:'html':'UTF-8'}
  {elseif $order.state_name == "Cancel"}
    {$order.state_name|escape:'html':'UTF-8'}
  {else}
    {if $demandes}
        {if $demandes != $benefits} 
            {l s='Payé' mod='jmarketplace'}
        {else}
            {l s='Payé' mod='jmarketplace'}
        {/if}
    {else}
        {$order.state_name|escape:'html':'UTF-8'}
    {/if}
  {/if}

到那个:

{if $order.state_name == "Pending"}
    {$order.state_name|escape:'html':'UTF-8'}
{elseif $order.state_name == "Cancel"}
    {$order.state_name|escape:'html':'UTF-8'}
{else}

    {if $demandes}
        {if $demandes != $benefits} 
            {l s='Payé' mod='jmarketplace'}
        {else}
            {l s='Payé' mod='jmarketplace'}
        {/if}
    {else}
        {$order.state_name|escape:'html':'UTF-8'}
    {/if}
 {/if}

0 个答案:

没有答案