• Login
Community
  • Login

Find and change EOL's

Scheduled Pinned Locked Moved General Discussion
3 Posts 2 Posters 239 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.
  • _
    _
    last edited by Aug 28, 2024, 2:52 PM

    How do i change an end of line (ENTER) into a string of spaces. I would like to change a long list of words in a smaller document.

    Like:

    String 01
    String 02
    String 03

    Into

    String 01_________String 02_________String 03

    The topic maker doesnt give the possibility to add a set of spaces so i use in this example _________.

    Thank you,
    Mondriaan

    P 1 Reply Last reply Aug 28, 2024, 4:38 PM Reply Quote 0
    • P
      PeterJones @_
      last edited by Aug 28, 2024, 4:38 PM

      @_ ,

      use regular expression mode, and search for \R as the FIND WHAT and replace with the spaces you want. That will literally join every line. If you only want it over a certain region, then select the region first, and use “In Selection” checkbox in the Replace dialog.

      of course, to join all lines, you can also just do Ctrl+A to Select All, then Edit > Line Operations > Join Lines (though that will join with a single space, instead of multiple spaces).

      _ 1 Reply Last reply Aug 28, 2024, 10:20 PM Reply Quote 4
      • _
        _ @PeterJones
        last edited by Aug 28, 2024, 10:20 PM

        @PeterJones Very Thanks.

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