Answer the question
In order to leave comments, you need to log in
How to highlight in PhpStorm tpl files of php syntax?
Highlighting in PhpStorm for tpl files of php syntax.
Good time of the day!
I work with OpenCart, and it, in turn, uses its own template engine instead of the smarty template engine and all data is output to files with the .tpl extension through php variables and this design is obtained
<?php if ($text) { ?>
<h1><?php echo $text; ?></h1>
<?php } else { ?>
<p><?php echo $text_none; ?></p>
<?php } ?>
Answer the question
In order to leave comments, you need to log in
File -> Settings -> IDE Settings -> File types -> PHP files
Add the desired file extension to the list by analogy.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question