Retain indent after closing ?> tag

Is there any way to retain indentation after a closing Php tag: ?> 

As it is now the following code, usually HTML, will lose all indent and start at the very left

Phpstorm 2018.3 on Lubuntu 18.04

4 comments
Comment actions Permalink

Could you please share a code example?

0
Comment actions Permalink
echo "
// I had to manually indent the style tag on the next line
<style>
#couponImage {
position: fixed;
bottom: 5px;
right: 5px;
border: 2px dashed yellow;
}
</style>

<img
src={$fullUrl}
alt='Special Coupon Offer 3'
id='couponImage'
/>
";
0
Comment actions Permalink
This was also inside echo '';

<div id='textCoupon'>
<p> // had to manually indent here
</p> // and here

</div>

 

0
Comment actions Permalink

Unfortunately not reproducible here.

Let's say we have 

<?php
echo "

";

?>
<div id='textCoupe'>
    <p>
        1
    </p>
</div>

If you copy the html part and insert it in line 3 - would it keep indent? It keeps it by default:

 

If it doesn't for you - please share your code style settings:

0

Please sign in to leave a comment.