Community
    • Login

    How to create a C# plugin?

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    plugins
    3 Posts 3 Posters 72 Views
    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.
    • S
      scampsd
      last edited by

      I’m trying to create a plugin for Notepad++ in order to integrate NLog (like line colouring, filtering, …).

      For that I’ve tried to get the so-called “Demo” plugin working, but I’m having lots of troubles (see StackOverflow post “https://stackoverflow.com/questions/79632308”).

      Is there somewhere a working C# plugin (together with a working “DllExport”) that I can use as a starting point?

      Thanks in advance
      Dominique

      PeterJonesP Mark OlsonM 2 Replies Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @scampsd
        last edited by PeterJones

        @scampsd ,

        Please be patient, and do not post two copies of the same question. A message similar to the following, when you were creating your post(s), should have made it clear that you would have to wait until your post was approved:
        fb0e9fda-225f-490f-a7b0-f0d75121d4a2-image.png

        Is there somewhere a working C# plugin (together with a working “DllExport”) that I can use as a starting point?

        Have you tried looking in the Online User Manual at https://npp-user-manual.org/, where the Plugins page has a section on plugin templates for various languages, which includes two actively-maintained C# plugin templates?

        kbilsted’s NotepadPlusPlusPluginPack.Net, mentioned in the SO discussion you linked to, hadn’t been updated for years (which is why it was recently removed from the User Manual list of templates): @Mark-Olson’s NppCSharpPluginPack mentioned in the Manual is a fork of that template, and has been updated to work with modern Notpead++ (and he’s a regular here and actively maintaining that template), so he’ll probably chime in with more advice for you.

        1 Reply Last reply Reply Quote 1
        • Mark OlsonM
          Mark Olson @scampsd
          last edited by

          @scampsd
          I would recommend NppCSharpPluginPack, which @PeterJones referenced above. I maintain it, and I don’t know of any other C# plugin templates that are actively maintained.

          1 Reply Last reply Reply Quote 2
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors