Community
    • Login

    Code Collapsing Weirdness

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 3 Posters 377 Views 1 Watching
    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 Offline
      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 Offline
        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 Offline
          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

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors