且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Notepad ++插件-查找并突出显示文本

更新时间:2022-06-22 07:57:49

如果要更改选择背景颜色,然后尝试:

If you want to change the selection background color, then try:

Win32.SendMessage(PluginBase.GetCurrentScintilla(),
                  SciMsg.SCI_SETSELBACK, 1, 0xFFFF00);

如果您要更改选择前景色,请尝试:

If you want to change the selection foreground color, then try:

Win32.SendMessage(PluginBase.GetCurrentScintilla(),
                  SciMsg.SCI_SETSELFORE, 1, 0xFF0000);

要重置默认颜色,请传递0而不是1.

To reset the default color, pass 0 instead of 1.