This project contains the source code for a Notepad++ plugin to sync with Pastebin.com.
- Upload selected text or the entire file content to Pastebin.com.
- Securely stores your Pastebin Developer API key using the Windows Credential Manager.
- Asynchronous uploads prevent the Notepad++ UI from freezing.
- Configurable settings for API key, paste name, format, expiration, and privacy.
-
Prerequisites:
- Visual Studio (2019 or later recommended).
- Notepad++ (ensure the architecture, 32-bit or 64-bit, matches your build target).
libcurlpre-compiled binaries for Windows.
-
Setup
libcurl:- Download
libcurland extract it. - In Visual Studio, configure your project's properties:
- C/C++ > General > Additional Include Directories: Add the path to
libcurl'sincludefolder. - Linker > General > Additional Library Directories: Add the path to
libcurl'slibfolder. - Linker > Input > Additional Dependencies: Add
libcurl.lib.
- C/C++ > General > Additional Include Directories: Add the path to
- Download
-
Build:
- Open the
.slnfile in Visual Studio. - Select the correct platform (
x86orx64) to match your Notepad++ installation. - Build the solution in
Releasemode.
- Open the
- Create a folder named
PastebinPlusPlusin your Notepad++pluginsdirectory (e.g.,C:\Program Files\Notepad++\plugins\PastebinPlusPlus). - Copy the compiled
PastebinPlusPlus.dllinto this new folder. - If you dynamically linked
libcurl, copycurl.dll(and its dependencies likelibssl-*.dll,libcrypto-*.dll) into the same folder. - Restart Notepad++.