• Login
Community
  • Login

Folding in main/sub-categorys without closing term

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
4 Posts 2 Posters 2.6k 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.
  • N
    Nuc1eaR
    last edited by Jun 23, 2016, 5:27 PM

    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
    • N
      Nuc1eaR
      last edited by Nuc1eaR Jun 24, 2016, 7:00 PM Jun 24, 2016, 7:00 PM

      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

      C 1 Reply Last reply Jun 24, 2016, 11:33 PM Reply Quote 0
      • C
        Claudia Frank @Nuc1eaR
        last edited by Jun 24, 2016, 11:33 PM

        @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
        • N
          Nuc1eaR
          last edited by Jun 25, 2016, 9:27 AM

          Aww…thats too bad - thank you Claudia!

          1 Reply Last reply Reply Quote 0
          2 out of 4
          • First post
            2/4
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors