Vertical line for the the right margin in Notepad++

80

8

Does anyone know if Notepad++ can display a vertical line on the right margin to indicated that the text will or will not fit on a printed page? I have looked but I cannot find it. Word wrap does work, but it wraps by my screen width, not by the width of a printed page.

ubiquibacon

Posted 2010-09-07T18:20:10.820

Reputation: 7 287

Answers

92

As you said you do not actually want to print it, you may use the Show vertical edge.

Setting > Preferences > Editing > Tick "Show vertical edge" > Choose "Line Mode"

You can then specify the vertical line should locate in which column (default should be 100).

(Tested in: Notepad++ v5.7)

wilson

Posted 2010-09-07T18:20:10.820

Reputation: 4 113

2It's still there in v6.8.8 (December, 2015). – ROMANIA_engineer – 2016-01-28T13:10:24.140

1Only issue I have with the vertical edge is that Word Wrap doesn't respect it. It would be wonderful to be able to check a box in the editing preferences to get this behavior. – KeithS – 2016-03-08T16:18:28.653

@KeithS you are correct. notepad++ doesn't support this feature yet. https://superuser.com/questions/365225/how-do-i-wrap-lines-in-notepad-after-n-symbols

– wilson – 2016-03-10T03:00:27.807

26

BTW You can also customize the color of that vertical bar here:

vertical edge color customizing in Notepad++

jakub.g

Posted 2010-09-07T18:20:10.820

Reputation: 4 332

0

I think modern Printers are able to auto adjust words so that can fit in the sheet. So don't worry about margins.

I suggest you use to Microsoft Word for typing documents that you want to print.

EDIT: I couldn't find anything that could provide a vertical margin in Notepad++. But as Workaround for text readability, once the text is written select all the text then press Ctrl + I (shortcut for Split Lines). One Disadvantage is that you have to keep your window size steady i.e don't resize it.

subanki

Posted 2010-09-07T18:20:10.820

Reputation: 6 702

1I actually do not want to print it, I just want the code to look nice and appear in a readable fashion. Having that line lets me know when to press 'ENTER'. – ubiquibacon – 2010-09-07T20:37:54.403

3Split LINES! CTRL+i BRILLIANT. NOTE: First, turn on word-wrap. This doesn't change your document, only the way it 'wraps' on the screen. Next, resize your window-width, select your text, then run this command. It will add new-lines to each line that goes beyond the window width. – Felipe Alvarez – 2010-09-17T11:17:50.343