SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Non-Member
    Join Date
    Jun 2007
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to comment-out a large section?

    How can I comment out a whole section of code?
    Do I have to do this:
    <!-- -->
    to each line?
    Thanks.

    Code:
      <!--Begin Video Browser Container-->
      <!-- we need a fixed height here if done this way to stablize the ajax load -->
      <div class="container-wide">
        <div class="browse-videos" style="height: 332px;">
          <div id="videos-ajax">
            <div id="videoajax">
              <ul>
    	      <li>
    	        <a href="videos/[blkfeatured_videos.indexer;block=div]/[blkfeatured_videos.title_seo;block=div]"><div class="browse-videos-title"><!--[blkfeatured_videos.title;block=div;ope=max:14;comm]--></div></a>
    	        <div class="browse-videos-member">By:&nbsp;&nbsp;<a href="members/[blkfeatured_videos.uploaded_by]"><b><!--[blkfeatured_videos.uploaded_by;block=div;ope=max:14;comm]--></b></a></div>
    	        <a href="videos/[blkfeatured_videos.indexer;block=div]/[blkfeatured_videos.title_seo;block=div]"><img src="uploads/thumbs/[blkfeatured_videos.video_id;block=div].jpg" title="<!--[blkfeatured_videos.title;block=div;comm]-->" alt="video pic" /></a>
    	        <div class="browse-videos-duration"><b><!--[blkfeatured_videos.video_length;block=div;ope=max:45;comm]--></b></div>
    	        <div class="browse-videos-rating">
    	          <img border="0" src="themes/[var.user_theme]/images/[blkfeatured_videos.star1;block=div]" width="11" height="11" alt="1 Star" />
    	          <img border="0" src="themes/[var.user_theme]/images/[blkfeatured_videos.star2;block=div]" width="11" height="11" alt="1 Star" />
    	          <img border="0" src="themes/[var.user_theme]/images/[blkfeatured_videos.star3;block=div]" width="11" height="11" alt="1 Star" />
    	          <img border="0" src="themes/[var.user_theme]/images/[blkfeatured_videos.star4;block=div]" width="11" height="11" alt="1 Star" />
    	          <img border="0" src="themes/[var.user_theme]/images/[blkfeatured_videos.star5;block=div]" width="11" height="11" alt="1 Star" />
    	        </div>
    	        <div class="browse-videos-date">[var.lang_added]:&nbsp;<!--[blkfeatured_videos.date_uploaded;block=div;comm]--></div>
    	      </li>
              </ul>
            </div>
          </div>
          <div class="clear-fix"></div>
        </div>
      </div>
      <!--End Video Browser Container-->
      <div class="container-wide-footer"></div>

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    16,494
    Mentioned
    164 Post(s)
    Tagged
    1 Thread(s)
    No. To comment out blocks of PHP code you can use
    /*
    ...
    ...
    ...
    */

    To comment out blocks of HTML code
    <!--
    ...
    ...
    ...
    -->

    As long as the comment "tags" (they're called something else) are well formed.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •