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
4 comments
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.

0
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?

default.tpl:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
{htmlTag->open}
<head>
    {headTitle->render}
    {headMeta->render favicon="{urlBasepath}/favicon.ico"}
    {mediaStack->render}
    <!--[if (gte IE 6)&(lte IE 8)]>
      <script type="text/javascript" src="{media name="vendor/selectivizr-min.js"}"></script>
    <![endif]-->
</head>
{bodyTag->open}

{mediaStack->addStyle file='http://fonts.googleapis.com/css?family=Open+Sans:400,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}

<div>
    template content etc (trimmed for brevity)
</div>

{bodyTag->close}{htmlTag->close}

0
Comment actions Permalink

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

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

0

Please sign in to leave a comment.