• Login
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.
  • C
    Charles W Billow
    last edited by Nov 26, 2018, 11:50 PM

    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?

    E 1 Reply Last reply Nov 27, 2018, 11:30 AM Reply Quote 1
    • E
      Eko palypse @Charles W Billow
      last edited by Nov 27, 2018, 11:30 AM

      @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
      • C
        Charles W Billow
        last edited by Nov 27, 2018, 9:49 PM

        OK, thanks.

        S 1 Reply Last reply Nov 27, 2018, 10:43 PM Reply Quote 0
        • S
          Scott Sumner @Charles W Billow
          last edited by Nov 27, 2018, 10:43 PM

          @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
          • C
            Charles W Billow
            last edited by Nov 28, 2018, 8:27 PM

            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.

            S 1 Reply Last reply Nov 28, 2018, 10:13 PM Reply Quote 0
            • S
              Scott Sumner @Charles W Billow
              last edited by Nov 28, 2018, 10:13 PM

              @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
              • C
                Charles W Billow
                last edited by Nov 28, 2018, 10:54 PM

                Is there an “easier” way?

                1 Reply Last reply Reply Quote 0
                • G
                  guy038
                  last edited by Nov 28, 2018, 11:12 PM

                  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
                  • C
                    Charles W Billow
                    last edited by Nov 29, 2018, 6:49 PM

                    Thanks guy038. I’ll give it a look.

                    1 Reply Last reply Reply Quote 0
                    • S
                      Scott Sumner
                      last edited by Dec 1, 2018, 2:45 AM

                      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
                      • C
                        Charles W Billow
                        last edited by Dec 3, 2018, 8:58 AM

                        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
                        1 out of 11
                        • First post
                          1/11
                          Last post
                        The Community of users of the Notepad++ text editor.
                        Powered by NodeBB | Contributors