I am using Nette framework, which uses *.latte files for html templating, I have assigned the *.latte extension under Smarty, which allows for autocomplete when writing all of the html code, but sometimes I use php snippets enclosed in <?php * ?> and they are treated as default text. Is there any way I can say that anything inside the <?php and the ?> is PHP and get the syntax highlight and autocomplete features for it?
There is also a plugin that recognizes *.latte files as their own file type. But even it only highlights HTML, but does't have autocomplete, plus php inside <?php ?> is still treated as default text, so the only thing it is good for is autocomplete and highlight of the Nette framework macros that are used inside the *.latte files. Maybe this would be easier to make work so that there is also HTML autocomplete and PHP highlight?