• Login
Community
  • Login

Horizontal line question

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
38 Posts 6 Posters 13.4k 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.
  • J
    JillPlaysMC
    last edited by Jun 27, 2022, 7:24 AM

    How do I make it so there’s only a certain amount of text per line? Like I want to make the length horizontal shorter but idk how to do it

    E 1 Reply Last reply Jun 27, 2022, 7:45 AM Reply Quote 0
    • E
      Ekopalypse @JillPlaysMC
      last edited by Jun 27, 2022, 7:45 AM

      @jillplaysmc

      are you talking about word wrap (menu View->Word wrap)?
      Or something else?

      J 1 Reply Last reply Jun 27, 2022, 7:52 AM Reply Quote 0
      • J
        JillPlaysMC @Ekopalypse
        last edited by Jun 27, 2022, 7:52 AM

        @ekopalypse Idk maybe. What I want to do is similar to a margin/border so I can only have 129 characters per line before it automatically goes to the next line

        E 1 Reply Last reply Jun 27, 2022, 8:01 AM Reply Quote 0
        • E
          Ekopalypse @JillPlaysMC
          last edited by Jun 27, 2022, 8:01 AM

          @jillplaysmc

          Word wrap is just a visual line break, and there is no setting to allow a wrap at a specific column.
          The function you are looking for is afaik not available in the built-in version but could be scripted with an installed PythonScript plugin.
          Do you want to go this way? If so, what should be the rule for wrapping to the next line? Wrap before the word that reaches the border, or after?

          J 1 Reply Last reply Jun 27, 2022, 8:03 AM Reply Quote 0
          • J
            JillPlaysMC @Ekopalypse
            last edited by Jun 27, 2022, 8:03 AM

            @ekopalypse So I have to get a plugin to get what I want? If so how do I do that?

            E N 2 Replies Last reply Jun 27, 2022, 8:09 AM Reply Quote 0
            • E
              Ekopalypse @JillPlaysMC
              last edited by Jun 27, 2022, 8:09 AM

              @jillplaysmc

              You need the Python script plugin. Ready to install via Plugins->Plugin Admin. Select Python Script and press install.

              Make sure you have saved all unsaved documents beforehand to avoid possible data loss.

              After that, we can write a little script that will automatically insert a line break
              either before or after the word that reaches the boundary or,
              if you prefer, break the word right at the column.

              J 1 Reply Last reply Jun 27, 2022, 8:17 AM Reply Quote 0
              • N
                Neil Schipper @JillPlaysMC
                last edited by Neil Schipper Jun 27, 2022, 8:15 AM Jun 27, 2022, 8:12 AM

                @jillplaysmc
                First you should get clarity on the difference between

                • text with line wraps currently visible onscreen
                • text with line breaks that persist across file re-openings

                Eko’s comments pertain to the former. With Word wrap on, you can adjust the width of the NP++ window (not maximized) to temporarily make the width of lines as you like. You’d only need the plug-in if this interfered with how you may wish to view other tabs.

                If you wish to actually split lines in a persistent way, you can make the window adjustments described above, then select the lines of interest and issue Edit -> Line Operations -> Split lines (default Ctrl + i)

                E 1 Reply Last reply Jun 27, 2022, 8:19 AM Reply Quote 1
                • J
                  JillPlaysMC @Ekopalypse
                  last edited by Jun 27, 2022, 8:17 AM

                  @ekopalypse Ok so I got the plugin, what do I do now?

                  E 1 Reply Last reply Jun 27, 2022, 8:22 AM Reply Quote 0
                  • E
                    Ekopalypse @Neil Schipper
                    last edited by Jun 27, 2022, 8:19 AM

                    I meant a real insertion of a line break, not just the visual break. Sorry if that didn’t come across clearly.

                    J 1 Reply Last reply Jun 27, 2022, 8:22 AM Reply Quote 0
                    • J
                      JillPlaysMC @Ekopalypse
                      last edited by Jun 27, 2022, 8:22 AM

                      @ekopalypse So I’m confused now, so I know the other thing makes a line that is only visual but doesn’t actually change the line but how do I make it actually change the line?

                      N 1 Reply Last reply Jun 27, 2022, 8:23 AM Reply Quote 0
                      • E
                        Ekopalypse @JillPlaysMC
                        last edited by Jun 27, 2022, 8:22 AM

                        @jillplaysmc

                        How should this work?
                        For all files you edit? Only for certain ones?
                        Where do you want it to wrap? Before the word that reaches the border, after it, or at that exact column?

                        1 Reply Last reply Reply Quote 0
                        • N
                          Neil Schipper @JillPlaysMC
                          last edited by Jun 27, 2022, 8:23 AM

                          @jillplaysmc said in Horizontal line question:

                          how do I make it actually change the line?

                          I believe I answered that.

                          E J 2 Replies Last reply Jun 27, 2022, 8:24 AM Reply Quote 0
                          • E
                            Ekopalypse @Neil Schipper
                            last edited by Jun 27, 2022, 8:24 AM

                            @neil-schipper

                            but this does not do it automatically when you edit text.

                            N 1 Reply Last reply Jun 27, 2022, 8:52 AM Reply Quote 0
                            • J
                              JillPlaysMC @Neil Schipper
                              last edited by Jun 27, 2022, 8:25 AM

                              @neil-schipper I’m just confused on what you mean. I know a good amount of tech stuff but I’m not a wizard and what you told me, I’m a little confused on it

                              N 1 Reply Last reply Jun 27, 2022, 8:30 AM Reply Quote 0
                              • N
                                Neil Schipper @JillPlaysMC
                                last edited by Neil Schipper Jun 27, 2022, 8:30 AM Jun 27, 2022, 8:30 AM

                                @jillplaysmc said in Horizontal line question:

                                I’m just confused on what you mean.

                                Me too!

                                Which of these are causing difficulty?

                                • turning Word wrap on and off
                                • adjusting the overall application window width
                                • selecting some or all lines
                                • issuing Split Lines command

                                Play around for ten minutes and then report back.

                                J 2 Replies Last reply Jun 27, 2022, 8:41 AM Reply Quote 0
                                • J
                                  JillPlaysMC @Neil Schipper
                                  last edited by Jun 27, 2022, 8:41 AM

                                  @neil-schipper Ok so I just found out that turning on warp wrap and making the window smaller does what I want. But how do I keep it like this when I put it back on maxed window mode?

                                  N 1 Reply Last reply Jun 27, 2022, 8:48 AM Reply Quote 0
                                  • N
                                    Neil Schipper @JillPlaysMC
                                    last edited by Jun 27, 2022, 8:48 AM

                                    @jillplaysmc
                                    So you’ve executed 2 out of 4 steps, but you don’t want to continue with the instructions to see if it meets your need?

                                    You also haven’t stated whether you want to control the appearance “for now” vs. change the file so it persistently has the shorter lines.

                                    1 Reply Last reply Reply Quote 0
                                    • N
                                      Neil Schipper @Ekopalypse
                                      last edited by Jun 27, 2022, 8:52 AM

                                      @ekopalypse said in Horizontal line question:

                                      but this does not do it automatically when you edit text

                                      Right. Maybe Jill will clarify that aspect of what she wants.

                                      1 Reply Last reply Reply Quote 1
                                      • J
                                        JillPlaysMC @Neil Schipper
                                        last edited by Jun 27, 2022, 9:11 AM

                                        @neil-schipper As for steps 3 and 4, what do you mean by select some or all lines, and what does split lines do?

                                        N 1 Reply Last reply Jun 27, 2022, 9:22 AM Reply Quote 0
                                        • N
                                          Neil Schipper @JillPlaysMC
                                          last edited by Jun 27, 2022, 9:22 AM

                                          @jillplaysmc
                                          Selecting is when you hold down Shift and cursor around or click-and-drag around. Selected text gets differently colored, and can then be copied (Ctrl-c) or cut (Ctrl-x) or undergo other operations.

                                          So, select a bunch of lines, issue Ctrl-i and see if you are happy with the result.

                                          Play around a lot. As you try different things you can issue undo (ctrl-z) commands to get back to where you were.

                                          J 1 Reply Last reply Jun 27, 2022, 9:25 AM Reply Quote 0
                                          10 out of 38
                                          • First post
                                            10/38
                                            Last post
                                          The Community of users of the Notepad++ text editor.
                                          Powered by NodeBB | Contributors