Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    How to zoom in on white space symbols

    Help wanted · · · – – – · · ·
    4
    5
    1960
    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 III
      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 Frank 1 Reply Last reply Reply Quote 0
      • Claudia Frank
        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 Sumner 1 Reply Last reply Reply Quote 0
        • Scott Sumner
          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
          • dail
            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 Frank
              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
              • First post
                Last post
              Copyright © 2014 NodeBB Forums | Contributors