Community
    • 登入

    Folding in main/sub-categorys without closing term

    已排程 已置頂 已鎖定 已移動 Help wanted · · · – – – · · ·
    4 貼文 2 Posters 2.6k 瀏覽
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • Nuc1eaRN
      Nuc1eaR
      最後由 編輯

      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 條回覆 最後回覆 回覆 引用 0
      • Nuc1eaRN
        Nuc1eaR
        最後由 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 條回覆 最後回覆 回覆 引用 0
        • Claudia FrankC
          Claudia Frank @Nuc1eaR
          最後由 編輯

          @Nuc1eaR

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

          Cheers
          Claudia

          1 條回覆 最後回覆 回覆 引用 0
          • Nuc1eaRN
            Nuc1eaR
            最後由 編輯

            Aww…thats too bad - thank you Claudia!

            1 條回覆 最後回覆 回覆 引用 0
            • 第一個貼文
              最後的貼文
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors