• Login
Community
  • Login

Code Collapsing Weirdness

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
3 Posts 3 Posters 186 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.
  • J
    Jason Burnett
    last edited by Mar 23, 2023, 8:53 AM

    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.

    M A 2 Replies Last reply Mar 23, 2023, 11:46 AM Reply Quote 0
    • M
      Michael Vincent @Jason Burnett
      last edited by Mar 23, 2023, 11:46 AM

      @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
      • A
        Alan Kilborn @Jason Burnett
        last edited by Mar 23, 2023, 11:47 AM

        @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
        3 out of 3
        • First post
          3/3
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors