[英]Add comment after html closing tab with sublime text
I want to know if is possible to add comments to existing html closing tags, for example: 我想知道是否可以向现有的html结束标记添加注释,例如:
<div class="container">
Content
</div>
And I want to format it to be like this: 我想将其格式化为:
<div class="container">
Content
</div> <!-- /.container -->
With emmet ( .container>{Content}
) I will have to rewrite all my code to get the comments, so it's possible to add closing comment with sublime text 3 to an existing html code instead to rewrite it again using emmet? 使用emmet(
.container>{Content}
),我将不得不重写我的所有代码以获取注释,因此可以在现有的html代码中添加带有sublime text 3的结束注释,而不是使用emmet再次重写它?
I'm not sure I understand the end of your post regarding emmet, but adding a comment after the HTML closing tag should be fine as any comments in an HTML file are ignored by the browser regardless of where they are placed. 我不确定我是否了解您关于Emmet的文章结尾,但是在HTML结束标记后添加注释应该很好,因为HTML文件中的任何注释都会被浏览器忽略,无论放置在何处。
Hope this helps. 希望这可以帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.