Community
    • 登入

    Changing colors of the space and other symbols, when view all is turned on.

    已排程 已置頂 已鎖定 已移動 Help wanted · · · – – – · · ·
    9 貼文 7 Posters 11.4k 瀏覽
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • Joe SmithJ
      Joe Smith
      最後由 編輯

      I have a problem seeing that small orange dot for a space, how can it be changed to a darker color?

      Scott SumnerS 1 條回覆 最後回覆 回覆 引用 0
      • gstaviG
        gstavi
        最後由 編輯

        Global Styles -> White space symbol

        1 條回覆 最後回覆 回覆 引用 0
        • Scott SumnerS
          Scott Sumner @Joe Smith
          最後由 編輯

          @Joe-Smith :

          @gstavi means specifically Settings (menu) -> Style Configurator… -> Language: Global Styles -> Style: White space symbol -> Colour style: Foreground color [@gstavi, sorry to jump in on your response, but it seemed like it might be cryptic if Joe is a total noob to Notepad++; heck, maybe my attempt at improvement is cryptic to some as well…]

          Additionally, if you want to modify it further (e.g. increase the size of the whitespace dot), and you aren’t opposed to using the NppExec or Pythonscript plugins (with 32-bit Notepad++), see replies made by me to this thread: https://notepad-plus-plus.org/community/topic/13362/show-and-symbol-instead-of-cr-lf-when-whitespaces-enabled for how this can be accomplished.

          1 條回覆 最後回覆 回覆 引用 0
          • guy038G
            guy038
            最後由 guy038 編輯

            Hello, @Joe-smith,

            In addition to the present @gstavi and @scott-sumner replies and to the posts of @claudia-frank and @scott-sumner, below :

            https://notepad-plus-plus.org/community/topic/12150/change-symbol-for-whitespace-highlight/2

            https://notepad-plus-plus.org/community/topic/13362/show-and-symbol-instead-of-cr-lf-when-whitespaces-enabled/4

            https://notepad-plus-plus.org/community/topic/13362/show-and-symbol-instead-of-cr-lf-when-whitespaces-enabled/5

            Here is my contribution :


            • First of all, download one of the installation archives, of the script languages, below :

              • PythonScript_Full_1.0.8.0.zip, from :

              https://sourceforge.net/projects/npppythonscript/files/Python Script 1.0.8.0/

              • LuaScript.zip ( or LuaScript64.zip ), from :

              https://github.com/dail8859/LuaScript/releases/tag/v0.7.0

              • NppExec20160628_dll.zip ( or NppExec20160628_dll_x64-2.zip ), from :

              https://sourceforge.net/projects/npp-plugins/files/NppExec/NppExec Plugin v0.5.9.9 dev/


            Once the chosen script installed and N++ re-started :

            • Choose the menu option View > Show Symbol > Show White Space and TAB or View > Show Symbol > Show All Characters

            • Open the Console window, of the script language, downloaded

              • With the Python script : Plugins > Python Script > Show Console

              • With the Lua script : Plugins > LuaScript > Show Console

              • With the NppExec script : Plugins > NppExec > Show Console Dialog


            Now :

            • To change the size of the orange dot symbol, type one of the following commands :

              • With the Python script : editor.setWhitespaceSize(3)

              • With the Lua script : editor.WhitespaceSize = 3

              • With the NppExec script : SCI_SENDMSG 2086 3

            in the input window of the Python or Lua script or in the console window of the NppExec script and valid with the Enter key

            • To know the current size of the space dot symbol, type one of the following commands

              • With the Python script : editor.getWhitespaceSize()

              • With the Lua script : editor.WhitespaceSize

              • With the NppExec script : SCI_SENDMSG 2087

            in the input window of the Python or Lua script or in the console window of the NppExec script and valid with the Enter key


            Notes :

            • Any value may be used, but, practically, only the values, in the range [0-4], are interesting !

              • Value 0 does not display the dot symbol

              • Value 1 is the default dot symbol size

              • Value 2, as Scott said, seems the best choice

              • Value 3 is, to my mind, the maximum sensible value

              • Value 4 : Huuuum… You probably need glasses ;-))


            You can get further documentation, at the addresses, below :

            http://www.scintillarg/ScintillaDoc.html#SCI_SETWHITESPACESIZE

            https://dail8859.github.io/LuaScript/classes/Editor.html

            http://npppythonscript.sourceforge.net/docs/latest/scintilla.html

            Best Regards,

            guy038

            1 條回覆 最後回覆 回覆 引用 1
            • László BotkaL
              László Botka
              最後由 編輯

              Hello guy038,

              I downloaded NppExec20160628_dll.zip, but don’t know how to install it.
              Please help

              Thanks

              Claudia FrankC 1 條回覆 最後回覆 回覆 引用 0
              • Claudia FrankC
                Claudia Frank @László Botka
                最後由 編輯

                @László-Botka

                you need to extract the content of the zip into the plugins directory.
                Depending on your installation choice this directory is under the installation directory
                or under %APPDATA%\notepad++ directory.

                Cheers
                Claudia

                1 條回覆 最後回覆 回覆 引用 0
                • László BotkaL
                  László Botka
                  最後由 編輯

                  Thanks you, works fine!

                  1 條回覆 最後回覆 回覆 引用 0
                  • dreamforceincD
                    dreamforceinc
                    最後由 編輯

                    With the NppExec script : SCI_SENDMSG 2087

                    Why nothing returned after executing this command?

                    ================ READY ================
                    SCI_SENDMSG 2087
                    SCI_SENDMSG: 2087
                    ================ READY ================

                    Claudia FrankC 1 條回覆 最後回覆 回覆 引用 0
                    • Claudia FrankC
                      Claudia Frank @dreamforceinc
                      最後由 編輯

                      @dreamforceinc

                      the result is stored in variable msg_result, so something like

                      SCI_SENDMSG 2087
                      echo $(MSG_RESULT)

                      would do the job.

                      Cheers
                      Claudia

                      1 條回覆 最後回覆 回覆 引用 1
                      • 第一個貼文
                        最後的貼文
                      The Community of users of the Notepad++ text editor.
                      Powered by NodeBB | Contributors