I use this plugin for comments.
Plug 'tpope/vim-commentary'
And when I comment html code in php I get
/* <div class="our-photos"> */
/* <h2 class="our-photos__main-title"><?php echo $main_title; ?></h2> */
/* <?php slider_component($our_photos, 'our_photos', false, false); ?> */
/* </div> */
But I want to get this
<!--<div class="our-photos">-->
<!--<h2 class="our-photos__main-title"><?php //echo $main_title; ?></h2>-->
<!--<?php //slider_component($our_photos, 'our_photos', false, false); ?>-->
<!--</div>-->
:set ft?
. Could you also tell us what is commentstring of your file:set commentstring?
?