Source

Notepad++PluginLazarus / helloworld.lpr

library helloworld;

{$MODE Delphi}

{
  Please pass string information to NPP
  using PChar, PWideChar or ShortString parameters.

  If you want to use this for ANSI Notepad++, please remove the
  -dNPPUnicode in the project settings/other sectino.

  Compiles with Lazarus 1.1 (SVN), FPC 2.6.1 (SVN) and FPC 2.7.1 x86.
  Initial version: August 2012
}

{$R helloworldres.rc}

uses
  SysUtils,
  Classes,
  Types,
  Interfaces, LCLIntf, LCLType, LMessages,forms,
  Messages,
  nppplugin in 'lib\nppplugin.pas',
  scisupport in 'lib\SciSupport.pas',
  NppForms in 'lib\NppForms.pas' {NppForm},
  NppDockingForms in 'lib\NppDockingForms.pas' {NppDockingForm},
  helloworldplugin in 'helloworldplugin.pas',
  AboutForms in 'AboutForms.pas' {AboutForm},
  helloworlddockingforms in 'helloworlddockingforms.pas' {HelloWorldDockingForm},
  windows;

{$Include 'lib\NppPluginInclude.pas'}

begin
  { First, assign the procedure to the DLLProc variable }
  Dll_Process_Detach_Hook:= @DLLEntryPoint;
  { Now invoke the procedure to reflect that the DLL is attaching to the process }
  DLLEntryPoint(DLL_PROCESS_ATTACH);
  Application.Initialize;
end.