Changing colors of the space and other symbols, when view all is turned on.
-
I have a problem seeing that small orange dot for a space, how can it be changed to a darker color?
-
Global Styles -> White space symbol
-
@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.
-
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
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( orLuaScript64.zip), from :
https://github.com/dail8859/LuaScript/releases/tag/v0.7.0
NppExec20160628_dll.zip( orNppExec20160628_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
0does not display the dot symbol -
Value
1is the default dot symbol size -
Value
2, as Scott said, seems the best choice -
Value
3is, 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
-
-
Hello guy038,
I downloaded NppExec20160628_dll.zip, but don’t know how to install it.
Please helpThanks
-
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 -
Thanks you, works fine!
-
With the NppExec script : SCI_SENDMSG 2087
Why nothing returned after executing this command?
================ READY ================
SCI_SENDMSG 2087
SCI_SENDMSG: 2087
================ READY ================ -
the result is stored in variable msg_result, so something like
SCI_SENDMSG 2087
echo $(MSG_RESULT)would do the job.
Cheers
Claudia
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login