Jump to content

Comment large amounts of code?


New Coder

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/41776-comment-large-amounts-of-code/
Share on other sites

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

 

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.

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!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.