How do I change smarty inspection?


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

Screen Shot 2014-08-06 at 08.39.20.png
Comment actions Permalink

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.

Comment actions Permalink

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?


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
    {headMeta->render favicon="{urlBasepath}/favicon.ico"}
    <!--[if (gte IE 6)&(lte IE 8)]>
      <script type="text/javascript" src="{media name="vendor/selectivizr-min.js"}"></script>

{mediaStack->addStyle file=',600|Dosis:600' cache=false order=25}
{mediaStack->addStyle file={media name="normalize.css"} order=35}
{mediaStack->addStyle file={media name="main.css"} order=40}

    template content etc (trimmed for brevity)


Comment actions Permalink


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).

Comment actions Permalink

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.


Please sign in to leave a comment.