Table of Contents

Interface IDotNetPlugin

Namespace
Npp.DotNet.Plugin
Assembly
Npp.DotNet.Plugin.dll

Provides managed wrappers around the core Notepad++ plugin APIs. Plugins can implement external lexers by extending this interface.

public interface IDotNetPlugin

Remarks

For a guide to the external lexer API, see https://community.notepad-plus-plus.org/post/76117

Methods

OnBeNotified(ScNotification)

Called by the unmanaged beNotified Notepad++ API function.
Callbacks for editor events and notifications go here.

void OnBeNotified(ScNotification notification)

Parameters

notification ScNotification

OnMessageProc(uint, UIntPtr, IntPtr)

Called by the unmanaged messageProc Notepad++ API function.
Callbacks for Win32 window messages go here. Some editor notifications may be sent to it as well.

NativeBool OnMessageProc(uint msg, UIntPtr wParam, IntPtr lParam)

Parameters

msg uint
wParam UIntPtr
lParam IntPtr

Returns

NativeBool

true to forward the message to the system for further processing; false to signal that this method will handle the message instead.

OnSetInfo()

Called by the unmanaged setInfo Notepad++ API function.
All setup logic that needs a valid handle to the host application window should go into this method.

void OnSetInfo()