Community
    • Login

    Folding in main/sub-categorys without closing term

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 2 Posters 2.8k Views 2 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.
    • Nuc1eaRN Offline
      Nuc1eaR
      last edited by

      Hi all!

      I’ll give the example first:

      %AAA1111
      code1
      %AAA2222
      (+++)
      code2_section1
      (+++)
      code2_section2
      %BBB1111
      code3

      [for my code ‘+++’ equals ‘***’ - if that matters. the preview here blocked it, thats why i didn’t put it in]
      [the numbers are 1 to 4 decimals, 0-9]

      I want:
      ‘%AAA’ and ‘%BBB’ to be main folding categorys
      ‘(+++)’ to be sub-folding categorys.

      Main
      So the first Folding should start at ‘%AAA1111’ and end right before ‘%AAA2222’ starts - folding ‘code1’ down.

      Second Folding starting at ‘%AAA2222’ folding down everything up to ‘%BBB1111’ [including: (+++); code2_section1; (+++); code2_section2]

      Third Folding starting at ‘%BBB1111’ ending at code-end - folding ‘code3’ down.

      Sub
      Each ‘(+++)’ is the start of a new Folding within a Main fold. It’s supposed to end right before a new ‘(+++)’ or before a upcoming ‘%AAA’ / ‘%BBB’

      The way i have it set up now the first ‘%AAA1111’ folds down everything and the ‘(+++)’ dont get recognized.
      There is no definite close-syntax i can use besides the point that (given these 2 categorys) a new fold should start.
      Is it possible to set this up?
      Also: Is the ‘***’-syntax screwing me? (that i could change would be a huge pain though - can’t change the ‘%AAA’ / ‘%BBB’ part)

      Thanks for reading - feel free to ask if i didnt explain it well enough.

      greetz
      Nuc

      1 Reply Last reply Reply Quote 0
      • Nuc1eaRN Offline
        Nuc1eaR
        last edited by Nuc1eaR

        I’m still around - and have not been abled to figure it out myself. So any help is much appreciated.

        Or did i pick the wrong forum to ask this in? Whatever it is, just dont leave me hanging - i willing to learn and correct my previously made mistakes :D

        Claudia FrankC 1 Reply Last reply Reply Quote 0
        • Claudia FrankC Offline
          Claudia Frank @Nuc1eaR
          last edited by

          @Nuc1eaR

          sorry, but afaik udls folding doesn’t work in a hierarchic (as a treeview) way.

          Cheers
          Claudia

          1 Reply Last reply Reply Quote 0
          • Nuc1eaRN Offline
            Nuc1eaR
            last edited by

            Aww…thats too bad - thank you Claudia!

            1 Reply Last reply Reply Quote 0

            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