+ Reply to Thread
Results 1 to 2 of 2

Thread: How to wrap a code...

  1. #1
    darylcarpo is offline x10Hosting Member darylcarpo is an unknown quantity at this point
    Join Date
    Oct 2008
    Posts
    21

    How to wrap a code...

    need to know, how can i wrap or code being quoted into my website. Because it exceeded into my templates.

  2. #2
    dickey's Avatar
    dickey is offline x10 Sophmore dickey is an unknown quantity at this point
    Join Date
    Sep 2008
    Location
    Singapore
    Posts
    128

    Re: How to wrap a code...

    you can manually press enter on white spaces. is it a php code?

    PHP Code:
      <?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!=&& $long_variable_name!=&& $long_variable_name<&& $long_variable_name >2)
          echo 
    $html_code;
      
    ?>
    the above would be really in a long line so what you can do is :
    PHP Code:
      <?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!=&& 
            
    $long_variable_name!=&& 
            
    $long_variable_name<&& 
            
    $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 Code:
      &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 by dickey; 11-07-2008 at 09:36 PM. Reason: Automerged Doublepost
    Don't get me wrong as I believe if and when I help someone I also help myself whereby whatever someone learns I also learn.

    But I will also accept credits or reps if you really want to part with it.

+ Reply to Thread

Similar Threads

  1. Hybrid's HTML Lessons
    By Hybrid in forum Tutorials
    Replies: 18
    Last Post: 11-28-2009, 02:12 PM
  2. Help with PayPal button code...
    By componentwarehouse in forum Programming Help
    Replies: 3
    Last Post: 06-17-2008, 06:22 AM
  3. BB Code Guide
    By Jober68 in forum Tutorials
    Replies: 1
    Last Post: 01-10-2008, 05:12 PM
  4. New x10 ad code
    By yahia in forum Feedback and Suggestions
    Replies: 23
    Last Post: 01-02-2007, 12:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers