npp-plugins / plugintemplate Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v2.0
License: GNU General Public License v2.0
Even your grandmom can do it! This template is done for making plugin development as easy and simple as possible. A simple plugin can be done through 4 steps, by editing only 2 files (PluginDefinition.h and PluginDefinition.cpp) : 1. Define your plugin name in "PluginDefinition.h" 2. Define your plugin commands number in "PluginDefinition.h" 3. Customize plugin commands names and associated function name (and the other stuff, optional) in "PluginDefinition.cpp". 4. Define the associated functions Just follow the 4 steps (commented) in both PluginDefinition.h and PluginDefinition.cpp files : //-------------------------------------// //-- STEP 1. DEFINE YOUR PLUGIN NAME --// //-------------------------------------// //-----------------------------------------------// //-- STEP 2. DEFINE YOUR PLUGIN COMMAND NUMBER --// //-----------------------------------------------// //--------------------------------------------// //-- STEP 3. CUSTOMIZE YOUR PLUGIN COMMANDS --// //--------------------------------------------// //----------------------------------------------// //-- STEP 4. DEFINE YOUR ASSOCIATED FUNCTIONS --// //----------------------------------------------// Any questions and suggestions please post here : https://community.notepad-plus-plus.org/category/5/notepad-plugin-development For more information about plugin development, please check here: https://npp-user-manual.org/docs/plugins/#how-to-develop-a-plugin https://npp-user-manual.org/docs/plugin-communication/ Don HO [email protected]
Description:
Plugin DLL should not throw from the DllMain() under any circumstances.
This crashes the host application during startup.
Prevent issues like this one: Hsilgos/nppsaveasadmin#24
Expected behavior:
Add try { } catch (...) { return FALSE: }
into DllMain()
See the current version of Scintilla.h used by NPP here:
https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/scintilla/include/Scintilla.h
The difference I noticed was in SCNotification
, where the current version has Sci_Position position
while this template has int position
. On x64 builds these types are not the same size, which causes runtime errors when reading the notification fields.
Page doesn't exist
How to have the template ready for GCC build , preferably on Mingw64 ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.