• Login
Community
  • Login

How to set border in Notepad++

Scheduled Pinned Locked Moved General Discussion
3 Posts 2 Posters 3.8k 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.
  • K
    Ku Qiu
    last edited by Feb 14, 2023, 11:21 PM

    Hi,

    I am new to Notepad++ and I am not sure whether ‘border’ is the correct way to describe it.

    Basically, I have a large amount of texts which will go into the ‘body’ part in the Editor like below. As you can see, no matter how much texts there are, they all stay in the same line and it is really difficult for me to read and to find out where I can put <p></p>.
    2.png
    Is there a way of setting a ‘border’ in Notepad++ like below so that when the texts hit the certain length it will automatically go to the next line?
    3.png

    T 1 Reply Last reply Feb 14, 2023, 11:53 PM Reply Quote 0
    • T
      Terry R @Ku Qiu
      last edited by Terry R Feb 14, 2023, 11:59 PM Feb 14, 2023, 11:53 PM

      @Ku-Qiu said in How to set border in Notepad++:

      Is there a way of setting a ‘border’ in Notepad++ like below so that when the texts hit the certain length it will automatically go to the next line?

      Given your example shows you want a new line to start, then no Notepad++ won’t do that itself. There have been some discussions in the past on people wanting this and there may be some pythonscript code which will emulate that, you would need to search posts for any information.

      There is the “vertical edge” which shows visually at a position across the page where the nth character would be. So when you approach that “edge” you would press enter and continue typing. It’s here:
      300727d7-a619-479d-b5e0-9c525efb6a27-image.png
      Details about it are in the online manual here .

      Also consider “word wrap”, an option under the “View” menu, maybe that will suffice your requirements. It doesn’t create a new line, but just splits it according to the width of the window. That way you can always see the left margin, which I think is sort of what your problems alludes to.

      Terry

      EDIT: also look at Preferences, Editing and the Line Wrap option which can further alter how the visual aspect of line wrap shows on the screen. There are so many options that you just need to do a bit of reading and test things out.

      K 1 Reply Last reply Feb 15, 2023, 12:09 AM Reply Quote 3
      • K
        Ku Qiu @Terry R
        last edited by Feb 15, 2023, 12:09 AM

        @Terry-R Thank you very much for your comments! ‘Word Wrap’ seems work perfectly in this case!!

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