Answer the question
In order to leave comments, you need to log in
How to teach PhpStrom to format php + html?
I just can't get my IDE to format PHP with HTML code after a couple of hours of web research.
Either it is lost, or it does not format correctly, and there is no place to set it up ... Maybe someone will advise a plugin?
some code
<a class="active" href="javascript:void(0);" data-value="#carousel-example-generic" onclick="scrollDiv('carousel-example-generic')"><?php if ($this->lang->line('photos') != '') { echo stripslashes($this->lang->line('photos')); } else echo "Photos"; ?></a></li>
<a href="javascript:void(0);" data-value="#about-listing-text" onclick="scrollDiv('about-listing-text')"><?php if ($this->lang->line('about_listing') != '') {
echo stripslashes($this->lang->line('about_listing'));
} else echo "About this listing"; ?> </a></li>
<?php
<?php if(count($reviewData->result_array()) >0){?>
<li class="numrstr">
<label class="star">
<a href="<?php echo(($_SERVER['HTTPS'] ? 'https://' : 'http://').$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]); ?>#reviews"></a>
</li>
<?php }?>
<?php if (count($reviewData->result_array()) > 0){ ?>
<li class="numrstr">
<label class="star">
<a href="<?php echo(($_SERVER['HTTPS'] ? 'https://' : 'http://') . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]); ?>#reviews"></a>
</li>
<?php } ?>
a.control_prev:hover, a.control_next:hover {
opacity: 1;
-webkit-transition: all 0.2s ease;
}
a.control_prev {
border-radius: 0 2px 2px 0;
}
a.control_prev:hover, a.control_next:hover {
opacity: 1;
-webkit-transition: all 0.2s ease;
}
a.control_prev {
border-radius: 0 2px 2px 0;
}
a.control_prev:hover, a.control_next:hover {
opacity: 1;
-webkit-transition: all 0.2s ease;
}
a.control_prev {
border-radius: 0 2px 2px 0;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question