Community
    • Login

    indent between the lines

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 2 Posters 133 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.
    • Linda DelenraL
      Linda Delenra
      last edited by PeterJones

      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

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @Linda Delenra
        last edited by PeterJones

        @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.

        Linda DelenraL 1 Reply Last reply Reply Quote 1
        • Linda DelenraL
          Linda Delenra @PeterJones
          last edited by

          @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”.

          PeterJonesP 1 Reply Last reply Reply Quote 0
          • PeterJonesP
            PeterJones @Linda Delenra
            last edited by

            @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
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors