Community
    • Login

    Settings specific to plugin (maybe folder to the plugin)

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    3 Posts 2 Posters 305 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.
    • ahmoy lawA
      ahmoy law
      last edited by

      Hi Plugin Community,

      My RegexTrainer plugin requires to store some settings into a config file (as requested by few users) but I couldnt find any article on where should i store settings specific to my plugin. I could vaguely remember (i could be wrong) that a plugin writen in c# will be initialized with few params and one of the params is the folder to the plugin. Any sample will be grately appreciated.

      Thanks,
      Ahmoy

      CoisesC 1 Reply Last reply Reply Quote 0
      • CoisesC
        Coises @ahmoy law
        last edited by

        @ahmoy-law I’m not familiar with C#, so I can’t help you directly, but this repository should have example code.

        Either directly or indirectly, you use NPPM_GETPLUGINSCONFIGDIR to get the path to the directory for plugin configuration files; by convention, the file name should be your plugin name, with whatever file extension is appropriate.

        ahmoy lawA 1 Reply Last reply Reply Quote 3
        • ahmoy lawA
          ahmoy law @Coises
          last edited by

          @Coises Many thanks!!!

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