Community
    • Login

    Announcement: Notepad++ plugin pack for C# v0.90 released

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    1 Posts 1 Posters 2.2k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Kasper GraversenK Offline
      Kasper Graversen
      last edited by

      Writing plugins for Notepad++ using C#/.Net has never been easier with this new plugin pack.

      https://github.com/kbilsted/NotepadPlusPlusPluginPack.Net/releases

      Highlights

      • Based on UFO’s dated plugin pack
      • Upgraded with more than 5000 lines of code - making interaction with Notepad++ and Scintilla less low-level.
      • Interfaces have been introduced so you can not unit test your plugins.
      • Future upgrades of the package is ensured to be simple

      The main contribution in this release is the introduction of the classes NotepadPlusPlusGateway and ScintillaGateWay. These gateways provide a much nicer interaction with Notepad++ for the plugin writer.

      The old architecture of plugins were something similar to the below picture:

             +-----------+ +-----------+
             | scintilla | | Notepad++ |
             +-----------+ +-----------+
                  ^             ^
                  |             |
                  +-------------+                   
                          |              
                     +-----------+ 
                     | Win32     |
                     +-----------+ 
                          ^
                          |
                     +-----------+ 
                     | plugin    |
                     +-----------+ 
      

      Plugins would interact with a “Win32” lowlevel api to do calls.

      The new architecture:

                     +-----------+ +-----------+
                     | scintilla | | Notepad++ |
                     +-----------+ +-----------+
                          ^             ^
                          |             |
                 +--------+--------+----+------------+                   
                 |                 |                 |
       +------------------+ +----------------+ +-----------+ 
       | scintillaGateway | | NotepadGateway | | Win32     |
       +------------------+ +----------------+ +-----------+ 
            ^                     ^                ^        
            |                     |                |        
            +-----------------+---+----------------+                   
                              |              
                         +-----------+ 
                         | plugin    |
                         +-----------+ 
      

      So as you can see, you still have access to the low-level stuff as you are used to, while at the same time being able to use the nice gateway classes.

      Go to: https://github.com/kbilsted/NotepadPlusPlusPluginPack.Net/releases

      1 Reply Last reply Reply Quote 1

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • First post
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors