Lost file type assosiation for PHP Smarty's tpl-files

已回答

Updated to latest IntelliJ and now the .tpl files have lost syntax hilighting, now parsed just as plaintext, and there is no Smarty option in File Types list, which used to have it (over a decade ago https://intellij-support.jetbrains.com/hc/en-us/community/posts/207068955-Display-tpl-files-as-simple-html-php-files?page=1#community_comment_207463739).

 

Can't find no plugins or anything that would control this either. How to get syntaxing back?

0

Hi,

This is a known issue with the missing Smarty plugin (which cannot be installed manually) in IntelliJ IDEA 2026.2.* + PHP Plugin:
https://youtrack.jetbrains.com/issue/WI-85665

 

Unfortunately, there is no workaround for this issue yet.

0

After updating to the latest IntelliJ version, .tpl files are no longer recognized as Smarty templates and are being treated as plain text. The Smarty option has also disappeared from the File Types settings, even though it was available in previous versions. This has removed syntax highlighting and made working with existing Smarty-based projects much harder. Please consider restoring Smarty template support or providing an updated plugin/setting for .tpl file recognition. Many legacy PHP projects still rely on Smarty templates, and losing this functionality is    My KP Schedule

 

0

I’ve noticed the same behavior since the latest IntelliJ update. tpl files are no longer detected as Smarty templates, so syntax highlighting is gone and the Smarty file type isn’t available in settings anymore. It would be great if JetBrains could bring this support back or update the plugin, especially for projects that still depend on Smarty. Tell Popeyes

0

Good news!

It is be possible to install the Smarty plugin now from a JetBrains Marketplace; here is a screenshot from my IntelliJ IDEA 2026.2.1 installation:

https://plugins.jetbrains.com/plugin/33360-smarty

 

0

请先登录再写评论。