Community
    • Login

    How to set correct lines

    Scheduled Pinned Locked Moved General Discussion
    12 Posts 3 Posters 4.7k 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.
    • Mark OlsonM Offline
      Mark Olson
      last edited by

      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.

      olekO 1 Reply Last reply Reply Quote 1
      • Alan KilbornA Offline
        Alan Kilborn
        last edited by

        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
        • olekO Offline
          olek @Mark Olson
          last edited by

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

          Mark OlsonM 1 Reply Last reply Reply Quote 0
          • Mark OlsonM Offline
            Mark Olson @olek
            last edited by

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

            olekO 1 Reply Last reply Reply Quote 0
            • olekO Offline
              olek @Mark Olson
              last edited by olek

              @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

              Mark OlsonM 1 Reply Last reply Reply Quote 0
              • Mark OlsonM Offline
                Mark Olson @olek
                last edited by

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

                olekO 1 Reply Last reply Reply Quote 0
                • olekO Offline
                  olek @Mark Olson
                  last edited by

                  @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
                  • Mark OlsonM Offline
                    Mark Olson
                    last edited by Mark Olson

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

                    olekO 1 Reply Last reply Reply Quote 0
                    • olekO Offline
                      olek @Mark Olson
                      last edited by

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

                      Mark OlsonM 1 Reply Last reply Reply Quote 0
                      • Mark OlsonM Offline
                        Mark Olson @olek
                        last edited by

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

                        olekO 1 Reply Last reply Reply Quote 0
                        • olekO Offline
                          olek @Mark Olson
                          last edited by

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

                          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