Home » Php » ide – How to treat .tpl syntax highlighting like php's syntax highlighting in PHPStorm

ide – How to treat .tpl syntax highlighting like php's syntax highlighting in PHPStorm

Posted by: admin July 12, 2020 Leave a comment

Questions:

I use PHPStorm

I need to know how could I treat .tpl files syntax highlighting like that of .php syntax highlighting?

How to&Answers:

If you want to treat .tpl files in the same way as .php, then you will have to re-assign *.tpl pattern to PHP files type in Settings | File Types

P.S.
This is IDE-wide setting and will affect all projects

Answer:

In PhpStorm configuration settings:

 File->Settings->Editor->File Types->php-> + -> add *.tpl

PHP storm site settings