Can PhpStorm recognize custom Smarty tags?

I use Smarty extensively and one of the reasons that I selected PhpStorm as my IDE is that it actually supports Smarty templates and custom Smarty delimiters (I use {{ and }}).

I create a lot of custom Smarty tags.
Is there any way to inform PhpStorm of these tags so that the syntax highlighter colors them properly?

Even better would be if the syntax highlighter understood that they were custom and applied a different color.

TIA.

2 comments

Hi,

Custom tags won't be recognised as tags, e.g. {t} {/t} will be recognised as  { IDENTIFIER } { /IDENTIFIER } and {section} {/section} as {KEYWORD} {/KEYWORD}.

Could you describe the feature request to highlight custom tags more detailed in our tracking system YouTrack:
http://youtrack.jetbrains.com/issues/WI#newissue=yes ?

See http://intellij-support.jetbrains.com/entries/23368682 if you are not familiar with YouTrack.

0

Please sign in to leave a comment.