kodermax
kodermax

Добрый день, как подружить OctoberCMS с PHPStorm, чтобы он понимал шаблонизатор ваш?

kattsoff
kattsoff

Так вот же http://blog.jetbrains.com/phpstorm/2013/06/twig-support-in-phpstorm/ Или о каком шаблонизаторе речь?

NickCool
NickCool

Подскажите, пожалуйста, как сделать подсветку twig в PHPStorm для файлов *.htm. Заранее благодарен :)

DMeganoski
DMeganoski

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.

NickCool
NickCool

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!

grawl
grawl

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

marco.messa325452
marco.messa325452

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