This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Так вот же http://blog.jetbrains.com/phpstorm/2013/06/twig-support-in-phpstorm/ Или о каком шаблонизаторе речь?
Подскажите, пожалуйста, как сделать подсветку twig в PHPStorm для файлов *.htm. Заранее благодарен :)
If google translated this correctly, I understand you want twig highlighting in phpstorm for files that have the '.htm' extension.
Settings -> Editor -> File Types
Find twig and add '*.htm' to the registered patterns.
DMeganoski said:
If google translated this correctly, I understand you want twig highlighting in phpstorm for files that have the '.htm' extension.
Settings -> Editor -> File Types
Find twig and add '*.htm' to the registered patterns.
Thank you!
But what if I want to highlight all parts of October *.htm templates? Initialization, PHP and Twig parts. Is there any way to do it? Like it done for VS Code https://marketplace.visualstudio.com/items?itemName=dqsully.octobercms-template-language
mail27629 said:
But what if I want to highlight all parts of October *.htm templates? Initialization, PHP and Twig parts. Is there any way to do it? Like it done for VS Code https://marketplace.visualstudio.com/items?itemName=dqsully.octobercms-template-language
This would be fantastic. But it's almost a year I'm developing with OctberCMS and I didn't found a solution for PhpStorm. I don't like to bind .htm files with twig because use the php part of file is really messy. What I do is bind .htm with php, and use <?php ?> in php part of template! When I need twig, I simply write it.
1-7 of 7