{"id":928,"date":"2013-12-30T22:55:50","date_gmt":"2013-12-30T22:55:50","guid":{"rendered":"http:\/\/scunster.co.uk\/?p=928"},"modified":"2013-12-30T23:03:04","modified_gmt":"2013-12-30T23:03:04","slug":"add-comments-or-edit-out-lines-in-php-html","status":"publish","type":"post","link":"https:\/\/scunster.co.uk\/?p=928","title":{"rendered":"Add comments or edit out lines in PHP &#038; HTML"},"content":{"rendered":"<p>If you&#8217;re adding lines or editing code in html, tpl or php it is a good idea to leave yourself or others comments.<\/p>\n<p>Of course this method can also be used comment out lines of code for testing purposes.<\/p>\n<p><strong>HTML, TPL<\/strong> commenting is achieved by prefixing the section with <-- and ending it in --><\/p>\n<p>All of the below example would be commented out \/ ignored in HTML.<\/p>\n<pre>&lt;--\r\nall of this is just \r\nhere to demonstrate that\r\nnone of this will actually\r\nappear in the html code!\r\n--&gt;<\/pre>\n<p><strong>PHP<\/strong> commenting is achieved by prefixing each line with # for a single line or \/* and *\/ for blocks of text.<\/p>\n<p>All of the below examples would be commented out \/ ignored in PHP.<\/p>\n<pre># this single line would not appear \/ be actioned in the php code!<\/pre>\n<pre>\/* all of this is just \r\nhere to demonstrate that\r\nnone of this will actually\r\nappear in the php code! *\/<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;re adding lines or editing code in html, tpl or php it is a good idea to leave yourself or others comments. Of course this method can also be used comment out lines of code for testing purposes. HTML, TPL commenting is achieved by prefixing the section with All of the below example would [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[165,12],"tags":[],"class_list":["post-928","post","type-post","status-publish","format-standard","hentry","category-websdesign","category-webhosting"],"_links":{"self":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/928","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=928"}],"version-history":[{"count":5,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/928\/revisions"}],"predecessor-version":[{"id":933,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/928\/revisions\/933"}],"wp:attachment":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=928"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=928"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=928"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}