blr044 Posted November 12, 2008 Share Posted November 12, 2008 In some of my files I like to add some comments for my information only. I have seen in many of the contributions they make comments but is commented out. For example: /** begin text notes **/ /** end text notes **/ //Begin text //End text I was using this method: /** begin of text **/ /** End of text *// But then viewing page, that piece of code is on the page. So how does one know which method to use and when? Thanks. blr044 Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted November 12, 2008 Share Posted November 12, 2008 Probably depends if it is contained within start and end php tags <?php /* this is comment and so is this */ ?> Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. Link to comment Share on other sites More sharing options...
blr044 Posted November 12, 2008 Author Share Posted November 12, 2008 How about <TR><TD> text text</TD></TR> Link to comment Share on other sites More sharing options...
germ Posted November 12, 2008 Share Posted November 12, 2008 <TR><TD><!-- text text //--></TD></TR> You're confusing PHP comments with HTML comments... :blush: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
blr044 Posted November 12, 2008 Author Share Posted November 12, 2008 I am aware that if one wants to comment text out in PHP and html is done different. I was having trouble within the HTML scetion. After several tries, I was abble to solve it. Did as below: <!-- /** Begin Text Text Text ***/ //--> <!-- /** End Text Text Text ***/ //--> Thanks. blr044 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.