Community
    • Login

    How to collapse lines under a header?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 1.5k Views 2 Watching
    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 Offline
      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 Offline
        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 Offline
          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

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors