Page margins -- both screen and print
-
Sorry if this has been covered and I missed it: How do I set up the NP++ page margins, both for on-screen editing and for printing?
-
the print margins can be set using the settings->preferences->print dialog but
as far as I know, there is no setting available to change the on-screen editing margin.
It might be possible to change this using a scripting language plugin but haven’t checked this.Eko
-
OK, thanks.
-
What did you have in mind for “on-screen” margins? Tell us more, maybe knowing more we can provide some hints…
-
I was hoping to be able to have the on-screen page show in a way that it would show on paper, taking margins into account when wrapping.
Right now, as far as I can tell, I can set the column in Settings / Preferences / Editing, and that “moves” the edge marker to the column. But it does not affect word wrap. The only ay to do that is to adjust the window size.
Yes?
That and the fact that there isn’t any Print Preview means that the only way to truly get a look at what the page will be is to print to, say, a pdf file.
While certainly workable, either a preview or the ability to coordinate the page edge setting with the word wrap would be a great deal more useful – IMHO.
-
@Charles-W-Billow said:
I was hoping to be able to have the on-screen page show in a way that it would show on paper, taking margins into account when wrapping
That’s is where I thought you were going with it, and No, it can’t be done to produce that result.
The only way to do that is to adjust the window size. Yes?
Correct.
the only way to truly get a look at what the page will be is to print to, say, a pdf file.
Well, that is ONE way, and they way that I would do it if it were me.
-
Is there an “easier” way?
-
Hello, @charles-w-billow, @Scott-sumner and All,
Regarding screen margins, I’ve got a solution :
- Install, first, the
LuaScript
pluginv0.8
:
https://github.com/dail8859/LuaScript/releases
Then, refer to that post :
https://notepad-plus-plus.org/community/topic/16163/add-space-at-left-of-text/4
Best Regards,
guy038
- Install, first, the
-
Thanks guy038. I’ll give it a look.
-
Even with @guy038’s technique, I don’t believe that you are going to get it so that what you see on your screen is exactly what is printed (which seems to be what you really want). If for some reason all you want is more blank space on the left and right sides of your screen window, that seems a dubious desire to me as it wastes valuable screen real estate.
Regardless, for completeness to @guy038 's offering about LuaScript, the equivalent function calls in Pythonscript are:
editor.setMarginLeft(number) editor.getMarginLeft() editor.setMarginRight(number) editor.getMarginRight()
-
Scott, yes, what I initially was after was a version of Print Preview, mostly so that it could be determined how what was being “typed” would fit on the page (as opposed to just “look” on it – headers, footers etc.). Although it isn’t needed frequently, it is nice to have when the need does arise.
But there are sufficient ways around it, so…