Menu

Highlighted Text in Notepad++

2007-10-29
2012-11-14
  • Nobody/Anonymous

    Why can't I change the forecolor selection for the current line highlight color?  I can change the highlight color, but not the forecolor.  More so Notepad++ should automatically adjust colors so the text is readable when highlighted!  When opening an NFO file I can't read the text under the highlight bar or selected text.  I change them in the style configuration, but then the colors make it hard to read text in standard text files.  Please include some updates to the style configuration colors to automatically select a good foreground color based on the background color of the text!  This should be automatic somehow.

    Thank you very much for a great program!

     
    • Nobody/Anonymous

      *bump*

       
      • vha

        vha - 2007-12-14

        *bump* from me too...

         
  • gointern

    gointern - 2009-11-06

    same here in 5.5.1 version.

    Any way to change the foreground color for nfo style?

     
  • claudia gildenmeister

    bump i want to know this too

     
  • Ash

    Ash - 2009-11-15

    So the answer is it's not possible to change the selected text foreground color?  At least that's what I got from searching the wiki.  A quick search through Google comes up with a line in NPP 2.2 version history: "Text foreground colour remains the same when text is selected (change only the selected text background colour)."  This sounds as if it was once possible to do, but was disabled for some reason.

     
  • cchris

    cchris - 2009-11-16

    Actually the wiki doesn't say much about this.

    But you can plug a synthetic macro in to achive this:

            <Macro name="foreSel" Ctrl="yes" Alt="yes" Shift="no" Key="100">
                <Action type="0" message="2067" wParam="1" lParam="your_color_here"/>
            </Macro>

    your_color_here must be an integer made of Blue+256*Green+65536*Red. Blue, Green and Red are the three components of the colour you choose, they are integers between 0 and 255 inclusive.

    You'll have to devise one macro per colour you need. And don't forget to fire it for it to be effective.

    CChris