Change background color of tool-tip function in notepad ++

I have already passed, but this is not a problem.

How to change the background color in a Notepad ++ text editor?

I program in python using notepad ++ and apply the Deep Black theme , which has a black background and white text color.

When you enter a function, it displays the syntax of the function on the tip of the instrument, which has a white background that contrasts with the black background of the notebook.

GIF explaining the flickering effect.

I already searched in Style Configurator but no luck.

How to change background color of tooltip?

+4
source share
1 answer

Notepad ++ Scintilla . callTip . scintilla, gui Notepad ++ ( callTip, , ), Scintilla.

( , , ) - NppExec. SCI_SENDMSG. scintilla . :

- , , . , , , STYLE_DEFAULT. STYLE_CALLTIP , , , SCI_CALLTIPUSESTYLE. . , , .

, SCI_CALLTIPUSESTYLE ( -), SCI_CALLTIPSETBACK SCI_CALLTIPSETFORE.

, , Scintilla NppExec, :

  • NppExec PluginManager PluginCentral. Zip NppExec dll . / Notepad ++ , NppExec ( ). NppExec Scintilla.h, .

  • NppExec script ( → NppExec → Execute..., , SetCallTipStlye):

    // use CALLTIPSTYLE instead DEFAULT
    SCI_SENDMSG SCI_CALLTIPUSESTYLE 0
    // background to black ( 0 )
    SCI_SENDMSG SCI_CALLTIPSETBACK 0
    // foreground to white ( 0xffffff )
    SCI_SENDMSG SCI_CALLTIPSETFORE 0xffffff
    
  • script OK

calltip , , .

, , → NppExec → script, Notepad ++ . script (, SetCallTipStlye)

, , . , , calltip, .

+3

Source: https://habr.com/ru/post/1686204/


All Articles