Community
    • Login

    How to collapse lines under a header?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 1.1k 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.
    • A
      Andrew Gregg 0
      last edited by

      So im unsure if this is doable, but I have a yaml file open within notepad. And in it I can use a read - icon to collapse everything in under the header.

      Is there anyway for me to do this with a standard .txt file? I need a lot of notes for the work im currently doing and that ability would be very helpful.

      I can provide a pic with what I can collapse if it somehow helps people know what im referring to.

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @Andrew Gregg 0
        last edited by PeterJones

        @Andrew-Gregg-0 ,

        With .txt extension, it won’t be automatic… But you can select the Language > YAML language manually to apply YAML-style folding (or pick whatever lexer has the closest folding rules to your .txt)… Or even make a UDL (though the folding rules for UDL are rather simplistic).

        You can assign a keyboard shortcut to any of the Language entries, if the menu is too slow for you.

        If you can assign a custom extension instead of.txt, you could make it pick the right lexer or UDL automatically

        1 Reply Last reply Reply Quote 1
        • A
          Andrew Gregg 0
          last edited by Andrew Gregg 0

          Wonderful! thank you so much that will make this way easier to keep orgenized.

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