Community

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

    Scintilla script help for 'Show white space and TAB'

    Plugin Development
    3
    7
    235
    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.
    • LAPIII
      LAPIII last edited by LAPIII

      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
      • PeterJones
        PeterJones last edited by

        @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
        • rinku singh
          rinku singh last edited by

          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

          PeterJones 1 Reply Last reply Reply Quote 0
          • rinku singh
            rinku singh last edited by

            link text

            1 Reply Last reply Reply Quote 2
            • rinku singh
              rinku singh last edited by

              ExtSettings plugin

              hgg.jpg

              1 Reply Last reply Reply Quote 1
              • PeterJones
                PeterJones @rinku singh last edited by

                @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
                • PeterJones
                  PeterJones last edited by

                  @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
                  • First post
                    Last post
                  Copyright © 2014 NodeBB Forums | Contributors