1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How do you "comment out a line"

Discussion in 'HTML & Website Design' started by Canadianbacon, Mar 5, 2006.

  1. #1
    Installing something and it asks me to "comment out a line."

    what does that mean?
    SEMrush
    thanks
     
    Canadianbacon, Mar 5, 2006 IP
    SEMrush
  2. sayyes

    sayyes Peon

    Messages:
    264
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    
    <!-- This is a comment in HTML -->
    
    Code (markup):
     
    sayyes, Mar 5, 2006 IP
    Canadianbacon likes this.
  3. flawebworks

    flawebworks Tech Services

    Messages:
    991
    Likes Received:
    36
    Best Answers:
    1
    Trophy Points:
    78
    #3
    This for perl or .htaccess #
    and I think // for php.
     
    flawebworks, Mar 5, 2006 IP
  4. fsmedia

    fsmedia Prominent Member

    Messages:
    5,165
    Likes Received:
    262
    Best Answers:
    0
    Trophy Points:
    390
    #4
    < !-- is for HTML

    you can use // or /* stuff */ for PHP
     
    fsmedia, Mar 5, 2006 IP
  5. Tam

    Tam Peon

    Messages:
    89
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #5
    And
    [B]/* comment */[/B]
    Code (markup):
    for CSS.

    :)
     
    Tam, Mar 6, 2006 IP
  6. Mayhem Design

    Mayhem Design Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    In CSS you need to use
    / * Comment goes in here */

    but with out the space between the first / and *

    This is the same as a comment block in PHP.
     
    Mayhem Design, Mar 6, 2006 IP
  7. Tam

    Tam Peon

    Messages:
    89
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Aha! lol, it took my entry out, didn't notice it until you posted yours. Thanks for that :)
     
    Tam, Mar 6, 2006 IP
  8. initialdheaven

    initialdheaven Peon

    Messages:
    43
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    i think you can do this too in html
    //
     
    initialdheaven, Mar 7, 2006 IP
  9. pkchukiss

    pkchukiss Peon

    Messages:
    116
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    It means that to prevent a particular line in the script from running, you need to turn it into a "comment". Script comments are not read by the processor, and mostly contain only information for people reading the script's source code.

    E.g. (in HTML)

    <P>And I really love this</P>
    <!-- Comment out next line if you don't wish to tell people that you aren't normal -->
    <P>I am a homosexual</P>
    Code (markup):
    If you follow the instructions:

    <P>And I really love this</P>
    <!-- Comment out next line if you don't wish to tell people that you aren't normal -->
    <!-- No way, I am not even a homosexual to BEGIN with! <P>I am a homosexual</P> -->
    Code (markup):
    The best part? You don't even have to worry much about which comment symbol to use for the different language: Just use the one which is used for the line that tells you to comment out other lines! (<!-- and --> in this case)
     
    pkchukiss, Mar 7, 2006 IP