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
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

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.