• Login
Community
  • Login

Npp Snippets plug in and plug in manager

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
9 Posts 5 Posters 4.3k 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
    Samantha Reid
    last edited by Nov 16, 2018, 11:36 AM

    I am on Windows 10 and installed the latest version of Notepad++. I have an existing library of code I want to use and need npp snippets to do this. With the new version, no matter what I do I cannot get the plug-ins to install. I have done the following:

    1. Tried to load the plug-ins by loading from plug in admin - notepad++ automatically restarts then nothing is loaded
    2. Tried loading the plug ins from settings - import - import plug-ins - this does nothing
    3. Copied the plug in, into my user folder: %LOCALAPPDATA%\Notepad++\plugins…also doesn’t work
      Please can someone give me advice.
    R 1 Reply Last reply Nov 16, 2018, 11:54 AM Reply Quote 0
    • R
      rinku singh @Samantha Reid
      last edited by rinku singh Nov 16, 2018, 11:55 AM Nov 16, 2018, 11:54 AM

      @Samantha-Reid try
      “C:\Users\rinku\AppData\Local\Notepad++\plugins\SnippetPlus\”
      SnippetPlus.dll
      SnippetPlus.xml
      SnippetPlus_Brown.css
      SnippetPlus_Smoke.css

      1 Reply Last reply Reply Quote 0
      • D
        dinkumoil
        last edited by dinkumoil Nov 16, 2018, 12:47 PM Nov 16, 2018, 12:44 PM

        @gurikbal-singh

        There are various code snippet plugins available, you are writing about the wrong one.


        @Samantha-Reid

        Folder to create for the plugin: %LOCALAPPDATA%\Notepad++\plugins\NppSnippets. Unzip the content of the plugin ZIP file to this directory.

        If it still doesn’t work the plugin has to be fixed, please contact its author.

        R 1 Reply Last reply Nov 16, 2018, 1:03 PM Reply Quote 0
        • R
          rinku singh @dinkumoil
          last edited by Nov 16, 2018, 1:03 PM

          @dinkumoil you are right here my installed snippetplus is different

          “C:\Users\rinku\AppData\Local\Notepad++\plugins\NppSnippets\"
          NppSnippets.dll

          “C:\Program Files\Notepad++\plugins\NppSnippets\”
          Languages.sql
          NppSnippets.sql
          Template.sqlite

          1 Reply Last reply Reply Quote 1
          • D
            dinkumoil
            last edited by Nov 16, 2018, 1:27 PM

            @gurikbal-singh

            I have tested it with the 32 bit variant of the plugin - it has to be fixed.

            The plugin works only with your configuration and will not work if it gets installed via Plugin Admin because Plugin Admin would do the same as I mentioned above - unzipping the plugin ZIP file to the %LocalAppData% plugins directory.

            @Samantha-Reid You should contact the plugin author to request an update that adopts the new Notepad++ plugin hosting model. The internal search algorithm for the plugin’s companion files has to be fixed, it uses wrong access paths.

            But Plugin Admin also does something weird. When it unzips the plugin’s ZIP file the file Languages.sql has a size of 0 byte - the unzip-code has a bug.

            1 Reply Last reply Reply Quote 1
            • C
              chcg
              last edited by Nov 16, 2018, 5:36 PM

              @dinkumoil There is indeed a known bug in unzipping with wingup, see https://github.com/notepad-plus-plus/nppPluginList/pull/11:

              1, Code alignment unzip is not correct. CodeAlignment.Common.dll has size zero, also this is not the case within the zip package, seems there is some issue with the zip algorithm of wingup.

              Therefore Code alignment is not yet part of the list.

              1 Reply Last reply Reply Quote 1
              • S
                Samantha Reid
                last edited by Nov 19, 2018, 5:04 AM

                thanks everyone - decided to use an alternate one in the meantime. Pity because I have loads of text I will need to redo…

                D 1 Reply Last reply Nov 19, 2018, 6:08 AM Reply Quote 0
                • D
                  dinkumoil @Samantha Reid
                  last edited by dinkumoil Nov 19, 2018, 6:09 AM Nov 19, 2018, 6:08 AM

                  @Samantha-Reid said:

                  Pity because I have loads of text I will need to redo…

                  That is not necessary. You can use NppSnipptes but you have to unpack the ZIP file by yourself and install it manually. The posting of @gurikbal-singh contains the required directory structure.

                  1 Reply Last reply Reply Quote 0
                  • O
                    OverlordBR
                    last edited by Nov 19, 2018, 12:00 PM

                    I have the Npp Snippets installed OK on my Notepad++ 7.6 (32 bits)

                    My structure is:

                    The directory:
                    “**C:\Users\YOUR_USER\AppData\Local\Notepad++\plugins\NppSnippets**”
                    has the file:
                    NppSnippets.dll

                    The directory:
                    “**C:\Users\YOUR_USER\AppData\Local\Notepad++\plugins\NppSnippets\NppSnippets**”
                    has the files:
                    Languages.sql
                    NppSnippets.sql
                    Template.sqlite

                    Backup your files,
                    specially this last 3 (Languages.sql, NppSnippets.sql and Template.sqlite) before puting into the second directory.

                    PS: yes, the second directory has NppSnippets twice (first level has the DLL, second level has the config files)

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