[英]How to comment html code with comments in Visual studio
I have the code:我有代码:
<html>
<!-- some comment -->
<div>
</html>
When i'm trying to comment this code (using ctrl + / ) i have this result:当我尝试评论此代码(使用 ctrl + / )时,我得到了以下结果:
<!--
<html>
<!-- some comment -->
<div>
</html>
-->
But i have an error on line, because this line have the another comment:但是我在网上有一个错误,因为这一行有另一个评论:
<!-- some comment -->
How to comment big chunks code with comments in html?如何用html中的注释注释大块代码?
i found what the problem was.我发现了问题所在。 I had installed the twig plugin (for the Twig php template engine) and that was causing the comments issue.
我已经安装了 Twig 插件(用于 Twig php 模板引擎),这导致了评论问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.