S
S
Sergey Burduzha2021-10-06 11:17:33
Visual Studio Code
Sergey Burduzha, 2021-10-06 11:17:33

How to comment php to html in vscode?

Now I am commenting the php block in vscode

<!-- <div class="logo">
                    <?php if (get_field('logo', 'option')) : ?>
                        <?php if (is_front_page() && get_field('logo', 'option') !== null) : ?>
                            <img src="<?php echo get_field('logo', 'option'); ?>" alt="">
                        <?php else : ?>
                            <a href="<?php echo home_url(); ?>">
                                <img src="<?php echo get_field('logo', 'option'); ?>" alt="">
                            </a>
                        <?php endif; ?>
                    <?php endif; ?>
                </div> -->


Only php code is not commented.

I found a plugin a long time ago, I just forgot what it's called.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rinat Ilyasov, 2021-10-07
@serii81

php comment //
html code comment

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question