• Login
Community
  • Login

Bug in Python Script

Scheduled Pinned Locked Moved General Discussion
5 Posts 3 Posters 303 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.
  • R
    Ruud Schmeitz
    last edited by Oct 21, 2020, 12:46 AM

    I found a way to change the Foreground color of the Selected text here :
    https://community.notepad-plus-plus.org/topic/11039/foreground-options-for-selected-text
    contribution : Claudia Frank Jan 3, 2016, 12:20 AM

    The editor.setSelFore(1,(255,255,255)) command does the trick , except for the dots representing the White space symbols .

    These are my Notepad++ settings :
    Preferences - Language.png
    View - Show Symbol.png
    Global Styles - White space symbol.png
    And this is the result of the editor.setSelFore(1,(255,255,255)) command .

    The code without selection :
    no selection.png
    The code with Selected text :
    selected text.png
    As you can see , the dots representing the White space symbols are still grey , instead of white .

    E 1 Reply Last reply Oct 21, 2020, 10:02 AM Reply Quote 0
    • E
      Ekopalypse @Ruud Schmeitz
      last edited by Oct 21, 2020, 10:02 AM

      @RuudSchmeitz

      the white space symbol is a different attribute and can be changed from
      npps settings menu.
      Settings->Style Configurator->Global Styles->White space symbol

      A 1 Reply Last reply Oct 21, 2020, 11:50 AM Reply Quote 2
      • A
        Alan Kilborn @Ekopalypse
        last edited by Oct 21, 2020, 11:50 AM

        @Ekopalypse said in Bug in Python Script:

        the white space symbol is a different attribute and can be changed from
        npps settings menu.

        Yes, but doesn’t OP only want to change it in when it is shown in the selected text?
        I don’t see a way to do this.
        But…it seems a small thing…

        E 1 Reply Last reply Oct 21, 2020, 11:53 AM Reply Quote 0
        • E
          Ekopalypse @Alan Kilborn
          last edited by Oct 21, 2020, 11:53 AM

          @Alan-Kilborn

          Oh, okay. Hm not sure it can be done on a selection as this
          seems to be a general scintilla attribute.

          R 1 Reply Last reply Oct 21, 2020, 4:28 PM Reply Quote 0
          • R
            Ruud Schmeitz @Ekopalypse
            last edited by Oct 21, 2020, 4:28 PM

            @Ekopalypse
            @Alan-Kilborn

            OK , thanks guys .

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