Community
    • Login

    extending notepad with modules (where are do you save them)

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 3.4k Views 2 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.
    • Nolan JorgerN Offline
      Nolan Jorger
      last edited by

      I want to extend Notepad++ with a module/library so that it can be imported into any project. Where do I store the .py files so that they are accessible in my environment?

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC Offline
        Claudia Frank @Nolan Jorger
        last edited by

        @Nolan-Jorger

        Do you talk about npp natively or about extending python script plugin?
        Npp can only be extended by plugins compiled as dll.
        Ok, this is not 100% correct but it is the official and save way.
        If you want to subclass npp with python you still need python script plugin.
        A script which does this has been posted here. If it is about
        python script plugin than just use create script and put the code in it.
        Note, you can also use local python installation instead of the python script
        delivered dll, as long as it is python 2.7.

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 0
        • Nolan JorgerN Offline
          Nolan Jorger
          last edited by Nolan Jorger

          I’ve already added Python Script as an add-on to my Notepad++ editor and have written a few scripts to automate some editing tasks. Now I want to add a module where I can declare, instantiate and use constants in my projects. I found a solution for this which is a simple module/class, but doesn’t specify where this should be stored so that all my Python Script projects can include/import this.

          Isn’t there a default folder where extensions/modules/classes should be stored?

          Any help on this subject will greatly appreciated.

          Nolan

          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