How do I change smarty inspection?
Hello,
I have a tpl in which I use (I believe non-default) smarty tags to address custom helper methods
{mediaStack->addScript file={media name="main.js"}}The Smarty inspector seems to not like the
->operator. Which is fair enough, but I can't seem to find a place were to disable this behaviour or perhaps even the whole inspector.
I have looked in File > Default settings and through the preferences.
Is there perhaps another place where this be done?
Kind regards
Attachment(s):
Screen Shot 2014-08-06 at 08.39.20.png
请先登录再写评论。
Hi there,
All Samrty inspections are done on lexer/parser level and cannot be turned off individually.
Please show whole file (as a text; could be some custom made up file) to better understand the issue. But as far as I can see from the info you have provided so far, you will not be able to turn these warnings off.
Thanks for your quick reply
Here is the beginning and end of a template file where this occurs. These are all custom smarty tags though, which are mapped to this system's view-helpers.
So I don't expect the editor to have support for them :-)
I was hoping to be able to turn off Smarty inspections all together, but if I understand you correctly, that is not possible?
default.tpl:
Thanks.
Well.. right now I could only suggest to submit Feature Request ticket to the Issue Tracker to support such cases. Not sure how fast it could be implemented though -- it seems to be pretty rare case.
In any case: some simple standalone working project (1 or 2 smarty template files that would use few of such tags together with actual custom tag implementation for better understanding) should rise a chance of implementing it sooner rather than later (but it mainly depends on votes).
I thank you for you help and quick replies!
I will look into submitting a feature request regarding the ability to disable the Smarty inspector.