Community
    • Login

    Page margins -- both screen and print

    Scheduled Pinned Locked Moved General Discussion
    11 Posts 4 Posters 4.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.
    • Charles W BillowC
      Charles W Billow
      last edited by

      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?

      Eko palypseE 1 Reply Last reply Reply Quote 1
      • Eko palypseE
        Eko palypse @Charles W Billow
        last edited by

        @Charles-W-Billow

        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

        1 Reply Last reply Reply Quote 1
        • Charles W BillowC
          Charles W Billow
          last edited by

          OK, thanks.

          Scott SumnerS 1 Reply Last reply Reply Quote 0
          • Scott SumnerS
            Scott Sumner @Charles W Billow
            last edited by

            @Charles-W-Billow

            What did you have in mind for “on-screen” margins? Tell us more, maybe knowing more we can provide some hints…

            1 Reply Last reply Reply Quote 0
            • Charles W BillowC
              Charles W Billow
              last edited by

              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.

              Scott SumnerS 1 Reply Last reply Reply Quote 0
              • Scott SumnerS
                Scott Sumner @Charles W Billow
                last edited by

                @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.

                1 Reply Last reply Reply Quote 0
                • Charles W BillowC
                  Charles W Billow
                  last edited by

                  Is there an “easier” way?

                  1 Reply Last reply Reply Quote 0
                  • guy038G
                    guy038
                    last edited by

                    Hello, @charles-w-billow, @Scott-sumner and All,

                    Regarding screen margins, I’ve got a solution :

                    • Install, first, the LuaScript plugin v0.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

                    1 Reply Last reply Reply Quote 2
                    • Charles W BillowC
                      Charles W Billow
                      last edited by

                      Thanks guy038. I’ll give it a look.

                      1 Reply Last reply Reply Quote 0
                      • Scott SumnerS
                        Scott Sumner
                        last edited by

                        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()
                        
                        1 Reply Last reply Reply Quote 2
                        • Charles W BillowC
                          Charles W Billow
                          last edited by

                          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…

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