Community
    • Login

    Code Collapsing Weirdness

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 3 Posters 178 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Jason BurnettJ
      Jason Burnett
      last edited by

      If I have the following code:
      <div class=“form_fld”>
      <div class=“sub_fld”>
      <p class=“txt”>some text 1</p>
      </div><!–sub_fld–>
      <div class=“sub_fld”>
      <p class=“txt”>some text 2</p>
      </div><!–sub_fld–>
      <div class=“sub_fld”>
      <p class=“txt”>some text 3</p>
      </div><!–sub_fld–>
      </div><!–form_fld–>
      I should be able to collapse each of the “sub_fld” class divs to hide only their content.

      But as soon as I try to collapse one sub_fld, it collapses the parent element. That’s not how code collapse is supposed to work.

      And how do I automatically indent four spaces for a tab. Currently you can’t hardly identify the indented lines.

      Michael VincentM Alan KilbornA 2 Replies Last reply Reply Quote 0
      • Michael VincentM
        Michael Vincent @Jason Burnett
        last edited by

        @Jason-Burnett said in Code Collapsing Weirdness:

        But as soon as I try to collapse one sub_fld, it collapses the parent element. That’s not how code collapse is supposed to work.
        And how do I automatically indent four spaces for a tab. Currently you can’t hardly identify the indented lines.

        Unless I misunderstand, it works for me:

        d37ec24b-69ff-4bda-9d05-2b06c5cd9495-image.png

        Cheers.

        1 Reply Last reply Reply Quote 3
        • Alan KilbornA
          Alan Kilborn @Jason Burnett
          last edited by

          @Jason-Burnett:

          I try to collapse one sub_fld, it collapses the parent element

          I don’t know…works for me correctly, with N++ 8.5:

          dcc4a6bd-72bc-478a-a9be-77e935a9cf7f-image.png

          I guess if it doesn’t work for you, you’ll have to demo something about exactly what it is doing for you.

          1 Reply Last reply Reply Quote 3
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors