Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Folding in main/sub-categorys without closing term

    Help wanted · · · – – – · · ·
    2
    4
    2285
    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.
    • Nuc1eaR
      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
      • Nuc1eaR
        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 Frank 1 Reply Last reply Reply Quote 0
        • Claudia Frank
          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
          • Nuc1eaR
            Nuc1eaR last edited by

            Aww…thats too bad - thank you Claudia!

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright © 2014 NodeBB Forums | Contributors