How to wrap a code...

darylcarpo

New Member
Messages
21
Reaction score
0
Points
0
need to know, how can i wrap or code being quoted into my website. Because it exceeded into my templates.
 

dickey

New Member
Messages
128
Reaction score
0
Points
0
you can manually press enter on white spaces. is it a php code?

PHP:
  <?php
    $html_code= "
        <p>Hello world...</p>
        <p>This is a long line and should be wrapped but I don't know how to, so if anybody can help me I would really appreciate it. But it may be possible that they might not understand what it is I really wanted to do. so I should be careful. </p>";
    if ($long_variable_name!=1 && $long_variable_name!=5 && $long_variable_name<4 && $long_variable_name >2)
      echo $html_code;
  ?>
the above would be really in a long line so what you can do is :
PHP:
  <?php
    $html_code= "
        <p>Hello world...</p>
        <p>This is a long line and should be wrapped 
              but I don't know how to, so if anybody can 
              help me I would really appreciate it. But it 
              may be possible that they might not understand 
              what it is I really wanted to do. 
              so I should be careful. </p>";
    if ($long_variable_name!=1 && 
        $long_variable_name!=5 && 
        $long_variable_name<4 && 
        $long_variable_name >2)
      echo $html_code;
  ?>
I hope I understood your question...
Edit:
But if you want to display HTML code into your website well you can use
HTML:
  &gt; for greater than ">"
  &lt; for less than "<"
  so for example you want to put a <p> tag it should be coded
  as &lt;p&gt;
is this what you mean in your question?
 
Last edited:
Top