Scintilla script help for 'Show white space and TAB'



  • 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?



  • @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++



  • 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



  • link text



  • ExtSettings plugin

    hgg.jpg



  • @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.



  • @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


Log in to reply