Community
    • Login

    How to zoom in on white space symbols

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    5 Posts 4 Posters 2.7k Views 4 Watching
    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.
    • Joseph M Cutcher IIIJ Offline
      Joseph M Cutcher III
      last edited by

      I need the tiny black dots in this image (which are white space symbols) to be larger.

      link text

      holding down Ctrl + Scroll only makes the text bigger. not the symbols.

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC Offline
        Claudia Frank @Joseph M Cutcher III
        last edited by

        @Joseph-M-Cutcher-III

        One way to make this whitespace symbol bigger is to use a scripting language plugin
        for example python script and use the funtion setWhitespaceSize from the editor object.
        Python example

        editor.setWhitespaceSize(4)  # 2 is the default
        

        This function called from a bufferactivated callback could do what you want to have.

        Cheers
        Claudia

        Scott SumnerS 1 Reply Last reply Reply Quote 0
        • Scott SumnerS Offline
          Scott Sumner @Claudia Frank
          last edited by Scott Sumner

          @Claudia-Frank

          This function called from a bufferactivated callback

          Hi Claudia, I’m confused by that final part of your response as the OP didn’t ask to do this differently for different files/types. For myself, I just .setWhitespaceSize() once in my startup.py and it works forevermore, globally…am I missing your point about this?

          1 Reply Last reply Reply Quote 1
          • dailD Offline
            dail
            last edited by

            As @Scott-Sumner pointed out I’ve always had success just setting the white space size during initialization.

            What I’ve done in the past is catch the SCN_ZOOMIN and SCN_ZOOMOUT notifications and use some simplistic mechanism to map the zoom value to an appropriate whitespace size so that it is changed dynamically.

            Note though there is a bug in the version of Scintilla that Notepad++ uses which does not draw the white space exactly centered. This is really only noticeable if you set the whitespace large enough.

            1 Reply Last reply Reply Quote 2
            • Claudia FrankC Offline
              Claudia Frank
              last edited by

              @Scott-Sumner, @dail

              Thx for the hint and alternatives. Actually I thought it is a buffer setting but gave it a try
              and have to confirm it isn’t. But it is a per editor attribute which means, we have to set
              editor1 and editor2 from within startup.py

              editor1.setWhitespaceSize(4)
              editor2.setWhitespaceSize(4)
              

              Cheers
              Claudia

              1 Reply Last reply Reply Quote 1

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors