[英]Wrap HTML Comments Within one HTML Comment in Dreamweaver
I want to comment the whole section of DIV filled with HTML Comments with only one but i dont think its a possible in Dreamweaver... 我只想用HTML注释对DIV的整个部分进行评论,但我认为这在Dreamweaver中是不可能的...
I dont want to remove the existing HTML Comments but i want to comment the whole section for future use... 我不想删除现有的HTML注释,但我想注释整个部分以备将来使用...
Example:- 例:-
<!-- Comments Starts -->
<div class="post">
<!-- Caption Starts -->
<div class="title">Comments</div>
<!-- Caption Ends -->
<!-- Text Starts -->
<div class="Content">Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum </div>
<!-- Text Ends -->
</div>
<!-- Comments Ends -->
Any Trick how to do it???? 有什么把戏怎么办????
My trick in .html file you can use <script>/* ... */</script>
我在.html文件中的技巧可以使用
<script>/* ... */</script>
<script>/*
<!-- Comments Starts -->
<div class="post">
<!-- Caption Starts -->
<div class="title">Comments</div>
<!-- Caption Ends -->
<!-- Text Starts -->
<div class="Content">Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum </div>
<!-- Text Ends -->
</div>
<!-- Comments Ends -->
*/</script>
If is a html with extension .php then use <?/* ... */?>
如果是扩展名为.php的html,则使用
<?/* ... */?>
<?php /*
<!-- Comments Starts -->
<div class="post">
<!-- Caption Starts -->
<div class="title">Comments</div>
<!-- Caption Ends -->
<!-- Text Starts -->
<div class="Content">Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum </div>
<!-- Text Ends -->
</div>
<!-- Comments Ends -->
*/?>
But i use it only for development work in progress and not for a finish website. 但我仅将其用于进行中的开发工作,而不用于完成网站。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.