How to create new file type association similar to existed one?
I need to make a smarty-like syntax highlight for eZ Publish template. I've read this post http://devnet.jetbrains.net/thread/313006 and haven't found the answer.
But if i simply create new file type and write some code snippets I lose highlight of html tags in template.
I understand that I can add all tags manually, but may be there is an opportunity to get smarty settings and make some changes to them?
In File->Settings->FileTypes Smarty not available to edit or view
Please sign in to leave a comment.
You can try this (although I'm not sure it will work as I do not have any custom file type to test with before giving such advice):
my fall, attach example template
as u can see smarty doesnt understand some states like def
and much important found error in statements
{if $itemsl1|count|gt(0)}
Attachment(s):
leftmenu.tpl.zip
Smarty support is implemented via Java and all those "settings" are hardcoded (part of PHP plugin itself) as it is not possible to implement proper support for something like Smarty with simple File Type entry.
Unfortunately I cannot help you here (I originally thought it was more simpler than this).
Yep, i found php.jar inside phpstorm installation and smarty folder inside
Thx for your attension, will wait for some more help