• Login
Community
  • Login

Any way to have a fixed number of characters per line?

Scheduled Pinned Locked Moved General Discussion
5 Posts 4 Posters 4.7k 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.
  • D
    Dan Evans
    last edited by Oct 28, 2020, 2:13 AM

    I’ve been trying to look for this option, to little avail.

    I’m wanting to have the option of typing stuff and for notepad plus to automatically “Enter” onto the next line automatically after a set/fixed number of characters had been reached.

    Is this possible?

    A 1 Reply Last reply Oct 28, 2020, 11:31 AM Reply Quote 0
    • T
      Terry R
      last edited by Oct 28, 2020, 2:30 AM

      @Dan-Evans said in Any way to have a fixed number of characters per line?:

      to automatically “Enter” onto the next line

      As far as I know there is no setting to do this. However there is a setting to highlight any text which exceeds a specified number of columns. Under Settings, Preferences, Editing, look for the Vertical Edge Settings. You can type a number and tick the “background mode”. Then whenever you type over this column the remaining characters will highlight.

      Alternately you could set the width of the Notepad++ window to approximate the width and keep typing. If you have “word Wrap” set on then the text will flow from row to row, however change the width and the view will look completely different.

      There was a recent post where the discussion was about changing widths of the lines, especially long lines (flowing over several rows without a line ending, word wrap). I was involved and presented a number of different solutions for different requests under this post. Look at
      https://community.notepad-plus-plus.org/topic/20008/line-wrap-in-the-current-version?page=1
      Maybe there might be something that helps you.

      Terry

      1 Reply Last reply Reply Quote 3
      • A
        Alan Kilborn @Dan Evans
        last edited by Oct 28, 2020, 11:31 AM

        @Dan-Evans

        Sounds like you want a “word processor”, not a “text editor”.

        1 Reply Last reply Reply Quote 1
        • P
          prahladmifour
          last edited by Oct 30, 2020, 4:24 AM

          Hello,@Dan-Evans

          Please try this, To Count the data in a line.

          find

          ^([^\\]*[\\]?[^\\]*){0,2}$
          

          and replace with an empty string

          I hope this information will be useful to you.
          Thank you.

          1 Reply Last reply Reply Quote -2
          • A
            Alan Kilborn
            last edited by Oct 30, 2020, 11:56 AM

            @prahladmifour said in Any way to have a fixed number of characters per line?:

            I hope this information will be useful to you.

            I think there’s a new bot in town.
            Reference: I hope this information will be useful to you.

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