phpstorm - Bug with HTML/PHP syntax highlighting -


i'm using phpstorm 6.0.3. max 6.x.

there's random bug syntax highlighting when php inside html:

enter image description here

on lines works, on doesn't...

text code copy/paste:

        <a href="<?php echo $_product->getproducturl() ?>" title="<?php echo $this->striptags($this->getimagelabel($_product, 'small_image'), null, true) ?>" class="product-image">         <img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135); ?>" width="135" height="135"              alt="<?php echo $this->striptags($this->getimagelabel($_product, 'small_image'), null, true) ?>" />     </a> <?php if ($is_packs) { ?>     <div class="pictos">         <?php           if ($_product->getattributetext('heure_conso'))             echo '<div class="heure-conso">'.$_product->getattributetext('heure_conso').'</div>';           if ($_product->getattributetext('pack_spec'))             echo '<div class="pack_spec">'.$_product->getattributetext('pack_spec').'</div>';           echo '<div class="nb-plats">'.$_product->getattributetext('pack_spec').'</div>';           if (mage::helper('tbm/data')->productisokforcustomerphase($_product))             echo '<div class="phase-ok">'.$this->__('adapté à votre phase').'</div>';         ?>     </div>     <div class="description">         <?php echo $_product->getshortdescription() ?>     </div> <?php } ?> 

any idea ?

not bug -- it's custom settings.

for whatever reason / somehow (does not matter) have injected custom language (most html) div tags (the light green background). in such tags forcibly treated language (html?) -- php ignored completely.

settings (preferences on mac) | language injections -- find , delete offending rule. should have "project" or "global" in right column (scope) -- not touch "bundled" ones.

alternatively -- alt + enter while having caret inside problematic place , choose "uninject xxx" popup menu.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -