• Login
Community
  • Login

Scintilla script help for 'Show white space and TAB'

Scheduled Pinned Locked Moved Notepad++ & Plugin Development
7 Posts 3 Posters 634 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.
  • L
    LAPIII
    last edited by LAPIII Oct 19, 2019, 6:31 PM Oct 19, 2019, 6:29 PM

    I made a Feature Request on Sourceforge and they said I could solve my issue with SCI_SETWHITESPACESIZE(0) which produces 0 sized dots? Which file do I tweak?

    1 Reply Last reply Reply Quote 1
    • P
      PeterJones
      last edited by Oct 19, 2019, 7:29 PM

      @LAPIII said in Scintilla script help for 'Show white space and TAB':

      Which file do I tweak

      That’s not in the default config files. But @dinkumoil’s ExtSettings might be able to handle it (or he might add the feature).

      If not, then a scripting plugin (like NppExec, Python script, LuaScript) would be able to send that message to scintilla, and should be able to be configured to do so every time you load Notepad++

      1 Reply Last reply Reply Quote 1
      • R
        rinku singh
        last edited by Oct 20, 2019, 2:46 AM

        your question is wrong as @PeterJones said scripting plugin (like NppExec, Python script, LuaScript) i had suggest you you should ask here for Show white space and TAB python script help

        now create a new post

        P 1 Reply Last reply Oct 20, 2019, 2:22 PM Reply Quote 0
        • R
          rinku singh
          last edited by Oct 20, 2019, 3:22 AM

          link text

          1 Reply Last reply Reply Quote 2
          • R
            rinku singh
            last edited by Oct 20, 2019, 3:38 AM

            ExtSettings plugin

            hgg.jpg

            1 Reply Last reply Reply Quote 1
            • P
              PeterJones @rinku singh
              last edited by Oct 20, 2019, 2:22 PM

              @gurikbal-singh:

              Thanks for showing how to do it in ExtSettings.

              However, you said,

              your question is wrong

              The question was not wrong. It was a good question. The answer may have been “not in the native interface” – but since there are two ways to implement it ( scripting, or the plugin), it’s something that is quite readily doable in Notepad++

              now create a new post

              Why create a new post, rather than continuing in this thread? I would actually say here is better than starting a new post.

              If I hadn’t thought ExtSettings would handle it, and had had a few minutes to experiment/verify, I would have given the Python script solution right away. But since the plugin answer is simpler and more convenient, I’ll leave it at that.

              1 Reply Last reply Reply Quote 1
              • P
                PeterJones
                last edited by Oct 20, 2019, 6:26 PM

                @PeterJones said in Scintilla script help for 'Show white space and TAB':

                I’ll leave it at that.

                When have you known me to leave it at that? ;-)

                To set the whitespace size with a scripting language (in case you don’t want to use ExtSettings):

                • PythonScript: add the following to your startup.py (or to another script you call from startup.py:

                    editor1.setWhitespaceSize(0)
                    editor2.setWhitespaceSize(0)
                  
                • NppExec:

                1. Plugins > NppExec > Execute, type in:

                   set local x = $(FILE_NAME)
                   npp_switch $(LEFT_VIEW_FILE)
                   sci_sendmsg SCI_SETWHITESPACESIZE 0
                   npp_switch $(RIGHT_VIEW_FILE)
                   sci_sendmsg SCI_SETWHITESPACESIZE 0
                   npp_switch $(x)
                  
                2. Save…, pick a name (like ZeroWhitespaceSize)

                3. Plugins > NppExec > Advanced Options

                4. Execute this script when Notepad++ starts = ZeroWhitespaceSize

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