Community
    • Login

    I need to riduce my text. Easy problem

    Scheduled Pinned Locked Moved General Discussion
    2 Posts 2 Posters 202 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.
    • Alberto MassaroA
      Alberto Massaro
      last edited by

      Hi everyone, sorry for my english.

      I need to set up my notes in a simple way. I have some lists that I would like to reduce with + and -. Let me explain with some examples.

      i currently use xml:

      • <Boy>
        | mick
        | patrick
        | Steave
        </boy>

      • <Woman>
        | Erika
        | Giudith
        </woman>

      Is there a method without opening and closing <> </> to collapse the lists?
      I don’t use notepad to program, but to sort my notes, so I can also change the language to simplify what I said.

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @Alberto Massaro
        last edited by PeterJones

        @Alberto-Massaro ,

        Sorry, I guess I don’t quite understand what you want – or rather, I’m not sure why choosing “xml” isn’t sufficient. Clicking on the +/- next to a collapsible section is the way to collapse a single level (or you can use the View > Collapse/Uncollapse Level submenus to affect all levels at the same time.

        Are you saying that you don’t actually have XML-like <> around the Boy and Woman, and you still want the ability to collapse? That’s doable with a UDL, but it would take knowing what your file format really looked like to know for sure.

        For example, if your file format looked like

        * Boy
            | mick
            | patrick
            | steave
        end
        
        * Woman
            | Erika
            | Giudith
        end
        

        Then you could set up a UDL (user defined language), where yould define * as the start of folding and end as the end of the folding block. (Unfortunately, I don’t know a way to set a blank line as the end of a UDL folding block, sorry.)

        9797ed65-1a9c-40bf-a6d2-c6cb1a6c1ffe-image.png

        If your data looks different than that, then you’ll have to give an example – after tying the example data, select it all and hit the </> toolbar button in the forum, so it goes in black box, like my example data above does

        With example data, we might be able to come up with a UDL folding definition that would work for you. But there are limits as to what will and won’t work.

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