Results 1 to 5 of 5

Thread: [RESOLVED] Dumb Easy Quesion

  1. #1

    Thread Starter
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Resolved [RESOLVED] Dumb Easy Quesion

    Is there a tag in html for commenting code out? Something like the ones for JavaScript.

    I searched but didnt find anything.

    Thanks


    Code:
    '...
    <tr valign="top">
        <td style="width: 10px">&nbsp;</td>
        <td style="width: 482px;">&nbsp;</td>
        <td style="width: 120px;">&nbsp;</td>
    </tr>
    
    //--Comment?
    <tr valign="top">
        <td style="width: 10px">&nbsp;</td>
        <td style="width: 482px;">&nbsp;</td>
        <td style="width: 120px;">&nbsp;</td>
    </tr>--//end commented code
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  2. #2
    Lively Member {yak}'s Avatar
    Join Date
    Aug 2005
    Posts
    119

    Re: Dumb Easy Quesion

    Yeah, html comments look like this:
    Code:
    <!-- 
    this is a comment
     -->
    {yak}

  3. #3

    Thread Starter
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Dumb Easy Quesion

    I thought that was for JavaScript only. just tested it and so it is!
    Thanks, told you it was an easy dumb question. Shows how little web development I do.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  4. #4
    Lively Member {yak}'s Avatar
    Join Date
    Aug 2005
    Posts
    119

    Re: [RESOLVED] Dumb Easy Quesion

    You're welcome.
    When I get stuck on this vb.net jabber, i'll be needing your expertise, which will probably be the equivilent of how to comment code
    {yak}

  5. #5
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: [RESOLVED] Dumb Easy Quesion

    The <!-- inside the script tags is merely a trick to hide the JavaScript from browsers that don't understand the script tag (basically none nowadays - even those that can't do JS recognize and ignore the tag), so that the content doesn't get displayed.

    Of course, in XHTML this is a bad idea, because the parser may (and often will) throw away comments without forwarding them to the application - so the browser never sees the JS code.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

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



Click Here to Expand Forum to Full Width