Community
    • Login

    How does Split Lines work?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 30.1k Views 1 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.
    • EldawE Offline
      Eldaw
      last edited by

      Can anybody explain how the Split Lines (Edit > Line Operations > Split Lines) is supposed to be used?

      If I select a few lines of text, e.g. like this:
      a
      b
      c
      d
      e

      then use Join Lines, they become one line like this:
      a b c d e

      But if I select that single line and then try to Split Lines, nothing happens. I thought Split Lines would do the opposite of Join Lines, but it appears I’m mistaken.

      I’ve also tried testing whether it splits on commas, but that doesn’t happen either.

      1 Reply Last reply Reply Quote 0
      • dailD Offline
        dail
        last edited by dail

        All that “Join Lines” does is remove newline characters, so it’s very simplistic. “Split Lines” can’t exactly do the opposite since it doesn’t know where the newline characters are suppose to go.

        “Split Lines” will use the width of the N++ window to split the lines…or if you have the edge mode enabled (enabled by Settings > Preferences > Editing > Show vertical edge) it will wrap the lines at that length.

        1 Reply Last reply Reply Quote 1
        • EldawE Offline
          Eldaw
          last edited by

          Understood, thanks dail.

          1 Reply Last reply Reply Quote 0

          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