• Login
Community
  • Login

How to set correct lines

Scheduled Pinned Locked Moved General Discussion
12 Posts 3 Posters 780 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.
  • O
    olek
    last edited by Sep 24, 2024, 9:02 PM

    Hi I would like ask about some specific issue .How to edit lines .For example is file and lines like :

    <-space2cm —>hello this is line 1
    <-space 2cm–>hello this is line 2
    <-space 2cm—>hello this is line 3

    I copy new lines but this new lines start from beginning left side like:
    hello this is line 1
    hello this is line 2
    hello this is line 3

    I need copy 100 new lines at once but need space .Notepad++ not allow my .I have to move each line manually.

    I have this

       hello this is line 1
       hello this is line 2
    

    hello this is line 1
    hello this is line 2

    I need this :

             hello this is line 1
             hello this is line 2
             hello this is line 1
             hello this is line 2
    
    1 Reply Last reply Reply Quote 0
    • M
      Mark Olson
      last edited by Sep 24, 2024, 9:16 PM

      If all you want to do is add space at the beginning of each line, you can use the column editor .

      For example, if I want to add five space characters at the start of each line of a file, I would place my caret at the very beginning of the file, open the column editor (Alt+C with default keybindings), check the Text to Insert button, enter five space buttons into the text box below that button, and hit OK.

      You could accomplish the same task using regular expressions , but I’m presenting the most noob-friendly tool here.

      O 1 Reply Last reply Sep 24, 2024, 10:08 PM Reply Quote 1
      • A
        Alan Kilborn
        last edited by Sep 24, 2024, 9:21 PM

        This topic made me think of the script from THIS TOPIC. With that, you’d copy your text to the clipboard, then, on the line where you want to start the paste, you’d space over to your desired column, then run the script to paste every line in the clipboard with the same leading spacing.

        1 Reply Last reply Reply Quote 2
        • O
          olek @Mark Olson
          last edited by Sep 24, 2024, 10:08 PM

          @Mark-Olson Mark this not works .when for example put 5 lines .Onli firest line is correct .

                           AAAAAAAAAAAAAAA
                           AAAAAAAAAAAAAAA
                           AAAAAAAAAAAAAAA
                           AAAAAAAAAAAAAAA
              AAAAAAAAAAAAAAA
              AAAAAAAAAAAAAAA
              AAAAAAAAAAAAAAA
              AAAAAAAAAAAAAAA
          

          I need put more then 100 lines lines by lines columns . Fires copy line is correct but rest move .

          M 1 Reply Last reply Sep 24, 2024, 10:47 PM Reply Quote 0
          • M
            Mark Olson @olek
            last edited by Sep 24, 2024, 10:47 PM

            @olek
            I am having a lot of trouble understanding you. Please use a better tool (maybe Google Translate?) to translate what you are trying to say into English.

            O 1 Reply Last reply Sep 25, 2024, 9:17 AM Reply Quote 0
            • O
              olek @Mark Olson
              last edited by olek Sep 25, 2024, 9:29 AM Sep 25, 2024, 9:17 AM

              @Mark-Olson Mark, I have a file with lines in the middle. I need to paste the next line into this file in a column in a line. The first copied line is arranged correctly. But the next ones create a shift. I need to copy it the way it is arranged in the file. like this

                    1.nnnnnnnnnnnn
                    2.nnnnnnnnnnnn
                    3.nnnnnnnnnnnn
              

              4.nnnnnnnnnn

              next copy 100 lines should be the same composition.But when I copy 10 lines only my first copy line lay good rest move for starters. Do you understand me .? In edited file is space .Next copy files also need space .I use keyboard to move line in correction . Space 2 cm column lines and next copy and past 10 lines should be the same gap .Still the some layer .

              1.jpg

              M 1 Reply Last reply Sep 25, 2024, 7:48 PM Reply Quote 0
              • M
                Mark Olson @olek
                last edited by Sep 25, 2024, 7:48 PM

                @olek
                I’m still having a very hard time understanding you, but it sounds like you’re asking how to make it so that the right offset of some lines of text is 2 centimeters, the way you would do in Microsoft Word.

                If that is what you want, I’m pretty sure we can’t do that for you in Notepad++, because Notepad++ is a text editor, not a word processor.

                O 1 Reply Last reply Sep 25, 2024, 8:27 PM Reply Quote 0
                • O
                  olek @Mark Olson
                  last edited by Sep 25, 2024, 8:27 PM

                  @Mark-Olson Mark I do not use Word .I have file template .yaml . in this template is some lines .This lines not on left edge .But lines locate move a little --> .If I copy and past new lines this template will not works .l need past new lines bottom column.One column. I copy not only 1 line I copy and past more about 10 lines .

                  First line when I past is correct .But rest lines back to edge . That way this Template will not works with program . Look screenshot .You can copy and past 1 line under column correct but I need copy 100 or more at once ,??
                  2.jpg

                  1 Reply Last reply Reply Quote 0
                  • M
                    Mark Olson
                    last edited by Mark Olson Sep 25, 2024, 8:32 PM Sep 25, 2024, 8:31 PM

                    @olek
                    It seems like you should probably just use the script that AlanKilborn mentioned above.

                    O 1 Reply Last reply Sep 25, 2024, 8:35 PM Reply Quote 0
                    • O
                      olek @Mark Olson
                      last edited by Sep 25, 2024, 8:35 PM

                      @Mark-Olson I try but this not works in my Windows 8 and on Linux shell too.I thought it is possible in Notepad++

                      M 1 Reply Last reply Sep 25, 2024, 8:54 PM Reply Quote 0
                      • M
                        Mark Olson @olek
                        last edited by Sep 25, 2024, 8:54 PM

                        @olek
                        I have no idea what plugins will work on Windows 8. Unfortunately I don’t think this is possible without a scripting plugin like PythonScript.

                        O 1 Reply Last reply Sep 25, 2024, 8:58 PM Reply Quote 0
                        • O
                          olek @Mark Olson
                          last edited by Sep 25, 2024, 8:58 PM

                          @Mark-Olson Ok I understand .Thanks for your support me .Sorry for my English.

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