• Login
Community
  • Login

indent between the lines

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
4 Posts 2 Posters 324 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.
  • L
    Linda Delenra
    last edited by PeterJones Feb 25, 2025, 2:29 PM Feb 25, 2025, 12:15 PM

    Hi! I need little help. How i can do indent between the lines.

    I have line like this:

    AAAAAAAAAA
    AAAAAAAAAA
    AAAAAAAAAA
    

    I need do like this:

    AAAAAAAAA
    
    AAAAAAAAA
    
    AAAAAAAAA
    

    —

    moderator added code markdown around text; please don’t forget to use the </> button to mark example text as “code” so that characters don’t get changed by the forum

    P 1 Reply Last reply Feb 25, 2025, 2:27 PM Reply Quote 0
    • P
      PeterJones @Linda Delenra
      last edited by PeterJones Feb 25, 2025, 2:33 PM Feb 25, 2025, 2:27 PM

      @Linda-Delenra ,

      You showed adding blank lines, which is different than indentation, but I will assume that what you showed is what you really wanted.

      Using the search and replace dialog, with SEARCH MODE = Regular expression , you can search for \R and replace with $0$0 , and run REPLACE ALL – which searches for a newline, and replaced with two copies of what was found.

      L 1 Reply Last reply Feb 25, 2025, 4:02 PM Reply Quote 1
      • L
        Linda Delenra @PeterJones
        last edited by Feb 25, 2025, 4:02 PM

        @PeterJones
        I mean that I have many lines of text in each line. And I would like that after each line there was a retreat in the form of an empty line. I do not know how to make these “spaces” on the highlighted text “by pressing one button”.

        P 1 Reply Last reply Feb 25, 2025, 5:28 PM Reply Quote 0
        • P
          PeterJones @Linda Delenra
          last edited by Feb 25, 2025, 5:28 PM

          @Linda-Delenra ,

          I mean that I have many lines of text in each line.

          I have no idea how you can have many lines of text in one line; there seems to be a language barrier. I answered the question based on your example data. If your example data doesn’t match reality, neither I nor anyone else here can answer your real question until you provide us data that matches reality. Sorry.

          If you have the text like you showed originally and want to transform it into your second example text, you need to run the regular expression replacement action that I described.

          by pressing one button

          You could record a macro where you do the replacement (Macro > Start Recording, run the REPLACE ALL, Macro > Stop Recording, Macro > Save Current Recorded Macro and assign a keyboard shortcut)

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