Different code style settings in PhpStorm for php files based on file extension? -


i'm using phpstorm (and love it!), coding standard current project uses 4 space indents .php files , 2 space indents template files (.phtml). template files traditional php , html. our code implements standard zend framwork mvc setup.

is there way configure phpstorm use 1 set of code style settings *.php files , different set of code style settings *.phtml files?

setting::file type didn't work
i've tried associating .phtml files html file type, causes me lose php language assistance (no php syntax highlighting, no code assist, etc.).

settings::template data languages didn't work
looked solution using the template data languages setting. setup .phtml files file type html, php isn't available setting, appears there no way add php language support html files.

afaik not possible.

if want have php support, file extension has associated php file type. that's way have php support php not injectable language in current phpstorm version/implementation.

you may utilize textmate bundles support plugin , install php supported highlighting there. allow assign .phtml extension file type. drawback can have 1 language highlighting .. html not highlighted + no code completion actual php (that's far simple experiments went other not-yet-supported languages).


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -