Community
    • 登入

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

    已排程 已置頂 已鎖定 已移動 Help wanted · · · – – – · · ·
    3 貼文 2 Posters 3.2k 瀏覽
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • Nolan JorgerN
      Nolan Jorger
      最後由 編輯

      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 條回覆 最後回覆 回覆 引用 0
      • Claudia FrankC
        Claudia Frank @Nolan Jorger
        最後由 編輯

        @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 條回覆 最後回覆 回覆 引用 0
        • Nolan JorgerN
          Nolan Jorger
          最後由 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 條回覆 最後回覆 回覆 引用 1
          • 第一個貼文
            最後的貼文
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors