Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Aug 2005
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Comments appearing in webpage

    On this page:
    Linux Basics

    You can see the following text at the bottom of the page:
    Code:
    <!-- wget url-to-tar.bz2-file tar -xvvjf tar.bz2-file cd brand-new-folder ./configure --prefix=/usr/local make su #and enter your root pass when asked make install ldconfig #not always needed, but can't hurt exit -->
    If you look at the code, that text is enclosed in comments. Why should it appear displayed in the browser? At least, in Firefox on linux it is displayed. Thanks.

    Dotan Cohen
    http://what-is-what.com

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    The double -- tell the browser to end the comment which is why they are showing.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    New Coder
    Join Date
    Aug 2005
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks, Aero. I thought that anything other than "-->" is legal in a comment. Also, the text is showing even _before_ the --.

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    The / could be part of the problem as well. A comment in HTML usually is
    <!-- -->
    or
    <!-- //-->
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #5
    Senior Coder
    Join Date
    Feb 2006
    Location
    USA
    Posts
    1,013
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I doubt the / would be causing a problem.

    I thought the // was only to hide the --> from JavaScript processors?

    Dotan, did you really have to ask this here, at Sitepoint, and at HTMLforums?
    Learn CSS. | SSI | PHP includes | X/HTML Validator | CSS validator | Dynamic Site Solutions
    Java != JavaScript && JScript != JavaScript
    Design/program for Firefox (and/or Opera), apply fixes for IE, not the other way around.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •