New Coder Posted March 8, 2007 Share Posted March 8, 2007 Hello all, I hope someone can help. I want to comment out a large amount of HTML code. I am using the <!-- --> syntax but for some reason if I exceed 1080 characters the page no longer functions properly. Is there another method other than <!-- --> that will allow me to comment a large amount of code? Many Thanks Quote Link to comment https://forums.phpfreaks.com/topic/41776-comment-large-amounts-of-code/ Share on other sites More sharing options...
fenway Posted March 8, 2007 Share Posted March 8, 2007 That's not possible... there's something else going on. Quote Link to comment https://forums.phpfreaks.com/topic/41776-comment-large-amounts-of-code/#findComment-202598 Share on other sites More sharing options...
New Coder Posted March 8, 2007 Author Share Posted March 8, 2007 This is what happens. <html> <head></head> <body> <?php Blah Blah php stuff ?> <!-- Large Comment --> </body> </html> works fine, but... <html> <head></head> <body> <?php Blah Blah ?> <!-- Large Comment --> <?php php stuff ?> <!-- Large Comment --> </body> </html> The page displays but links etc stop working. Wierd. Cheers Quote Link to comment https://forums.phpfreaks.com/topic/41776-comment-large-amounts-of-code/#findComment-202613 Share on other sites More sharing options...
fenway Posted March 8, 2007 Share Posted March 8, 2007 I'm going to tell you that this has nothing to do with HTML. Quote Link to comment https://forums.phpfreaks.com/topic/41776-comment-large-amounts-of-code/#findComment-202721 Share on other sites More sharing options...
tarun Posted March 8, 2007 Share Posted March 8, 2007 My Theory: Mayby Because Theres So Much Comment That The Page Fails To Load Because Its Such A Big Quote Link to comment https://forums.phpfreaks.com/topic/41776-comment-large-amounts-of-code/#findComment-202844 Share on other sites More sharing options...
TheFilmGod Posted March 9, 2007 Share Posted March 9, 2007 Why do you need to make such a big comment? Why not simply make a link to a whole page about the comment. Large comments are useless in html and backfire at you! Quote Link to comment https://forums.phpfreaks.com/topic/41776-comment-large-amounts-of-code/#findComment-203124 Share on other sites More sharing options...
AndyB Posted March 9, 2007 Share Posted March 9, 2007 This really makes no sense at all. Assuming that the page with the huge comments is online, let's have a URL so we can see this behaviour. If it acts weirdly in some editor or other, the problem's with the editor. Quote Link to comment https://forums.phpfreaks.com/topic/41776-comment-large-amounts-of-code/#findComment-203139 Share on other sites More sharing options...
HoTDaWg Posted March 13, 2007 Share Posted March 13, 2007 source for examplescript.php ============= PHP code here | ______________ Html undeneath | ============= or even all the code is done in php thanks .tpl (.template) files :S it really depends on how much experience u got under the belt...lol under the belt...dirty lol. Quote Link to comment https://forums.phpfreaks.com/topic/41776-comment-large-amounts-of-code/#findComment-206667 Share on other sites More sharing options...
TheFilmGod Posted March 19, 2007 Share Posted March 19, 2007 Instead of this: <!-- Commajkl;dfjiaosjdfijasdifjaisdjfiasjd;fja;isdjfiasdfjaisdjfiasdjfiasjdif asdfasdfasidfjaiospdjfpoaisjdfpioajsdfipo asdifj aispodjfiosdjf sidjfsdij f dd asdifjasdif aspiod fjapsid fasidjf apisjdfpiajsd fpiojasdfij aspidfj aisjdfiasjdf asdfisdf --> Have this: <!-- Comment aodfijdsifjsdifisdfjsdijfisdjfiosdfo --> <!-- Comment continued aidsfjapiodjfpioasjdfd --> It works! Quote Link to comment https://forums.phpfreaks.com/topic/41776-comment-large-amounts-of-code/#findComment-210311 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.