WordPress.org

Forums

Multiple Line HTML Commenting Does Not Work (3 posts)

  1. peterdub
    Member
    Posted 2 years ago #

    Multiple Line HTML Commenting Does Not Work...

    For example
    <!--
    blah blah
    blah blah
    -->
    does not work

    only
    <!-- blah blah -->
    works

    I find this annoying and would appreciate knowing if this or any other comment tag works to enclose several lines - or can be made to work by some coding or plug-in measure, preferably simple!

  2. peterdub
    Member
    Posted 2 years ago #

    When I say does not work,
    I mean that wordpress just displays everything within the comment tags,
    and also the comment tags themselves, for multiple lines.

    Please don't just suggest "hey don't use long commenting" or such ;-)
    I would appreciate knowing if and how it is possible.

  3. peterdub
    Member
    Posted 2 years ago #

    To clarify, I am in HTML editor OK
    (or presumably the single line comment would not work!)

    The only thing I could find that might seem a useful quick workaround was
    <div style="display: none;"> </div>
    Unfortunately, this too is very quirky in what is and is not shown...
    it does not seem to obey the </div> closing tag.

Topic Closed

This topic has been closed to new replies.

About this Topic