How to install a Notepad++ plugin offline?

耗尽温柔 提交于 2021-02-17 11:13:17

问题


I am trying to install a Notepad++ plugin from Plugins -> Plugin Manager, but my office firewall is restricting its download. Is there any alternate way to download plugin offline?


回答1:


Here are the steps that worked for me:

  1. Download the plugin and extract the plugin dll file.
  2. Place the plugin.dll file under plugin folder of notepad++ installation. For me it was : C:\Program Files\Notepad++\plugins
  3. Go to Notepad++ then : Settings -> Import -> Import plugin (import the plugin).
  4. Notepad++ will show the restart message / Sometimes it may not show it.
  5. Restart the notepad++.
  6. Should see new plugin under the Plugins menu. ALL DONE!!



回答2:


It's worth noting that the exact steps to follow can differ depending on the plugin. (E.g. I've just manually installed XML Tools and this involved copying some files from a subfolder into the root Notepad++ installation directory.) So would recommend the following:-

  1. Download the plugin you wish to install. A comprehensive list is provided at Notepad++ Plugin Central.
  2. Extract to a local folder (e.g. using 7-zip or similar).
  3. Look in the extracted files and folders for any readme files or specific instructions to be followed - and then follow them. In case there aren't any instructions, the one thing that must be done for all plugins is to copy the .DLL file into the plugins folder within your Notepad++ installation folder (e.g. C:\Program Files (x86)\Notepad++\plugins\).



回答3:


For me the C:\Program Files (x86)\Notepad++\plugins does not work.

I have to put plugins into the following directory: C:\Users\<username>\AppData\Local\Notepad++\plugins


UPDATE

There is a feature from NPP-v7.6.4 to open plugin folder:

Plugins -> Open Plugins Folder...




回答4:


My frustration in being unable to get a plugin for Notepad++ to work came from not realizing that the DLL for the plugin had to be installed directly in the C:\Program Files (x86)\Notepad++\plugins directory, and NOT into a subfolder below that, named for the plugin.

I was misled because every OTHER plugin that comes with the clean installation of Notepad++ IS installed in its own subfolder under \plugins.

\plugins
   ├ DSpellCheck
   ├ MIME Tools
   └ Converter (etc.)

I tried that with the plugin I was attempting to install (autosave), and just couldn't get it to work. But then thanks to an answer from Steve Chambers above, I tried putting the DLL directly into the \plugins folder and PRESTO! It Works.

Hope this helps save someone else similar frustrations!




回答5:


In v7.7, I had to go to Plugins menu and select "Open Plugins Folder..." (which goes to C:\Program Files\Notepad++\plugins).

I had to create a folder for the plugin and extract the .dll into the folder. For example, create a folder called "JSMinNPP" and place the "JSMinNPP.dll" in that folder. It doesn't work if you put the dll into the plugins folder.

Finally go to Settings --> Import --> Import plugin(s) and import that dll and restart Notepad++.




回答6:


  • Download and extract .zip file having all .dll plugin files under the path

    C:\ProgramData\Notepad++\plugins\

  • Make sure to create a separated folder for each plugin

  • Plugin (.dll) must be compatible with installed Notepad++ version (32 bit or 64 bit)



回答7:


Notepad++ address has changed, so many of the links above are broken. The up to date link for this question is here: https://npp-user-manual.org/docs/plugins/

Just in case the address changes again, here is what we have there today:

How to install a plugin

Install plugin manually

If the plugin you want to install is not listed in the Plugins Admin, you may still install it manually. The plugin (in the DLL form) should be placed in the plugins subfolder of the Notepad++ Install Folder, under the subfolder with the same name of plugin binary name without file extension. For example, if the plugin you want to install named myAwesomePlugin.dll, you should install it with the following path: %PROGRAMFILES(x86)%\Notepad++\plugins\myAwesomePlugin\myAwesomePlugin.dll

Once you installed the plugin, you can use (and you may configure) it via the menu “Plugins”.




回答8:


Here are my steps tried with NPP 7.8.2:

(1)Download the plugins zip (refer plugin-full-list json):

https://github.com/notepad-plus-plus/nppPluginList/blob/master/src/pl.x64.json

(2)Extract the files (normally .dll lib files) from zip to npp's plugins sub-folder

E.g., extract NppFTP-x64.zip into C:\Program Files\Notepad++\plugins\NppFTP

Keep in mind:

  (i)Must create sub-folder for each plugin
 (ii)The sub-folder's name must be EXACTLY SAME as the main .dll filename (e.g., NppFTP.dll)

(3)Restart npp, those plugin will be automatically loaded.

[Note-1]: I didn't do setting->import->plugin, it seems this is not required [Note-2]: You may need start npp with "run as administrator" option if you want to do import plugin.




回答9:


If the plugin you want to install is not listed in the Plugins Admin, you may still install it manually. The plugin (in the DLL form) should be placed in the plugins subfolder of the Notepad++ Install Folder, under the subfolder with the same name of plugin binary name without file extension.

For example, if the plugin you want to install named myAwesomePlugin.dll, you should install it with the following path:

%PROGRAMFILES(x86)%\Notepad++\plugins\myAwesomePlugin\myAwesomePlugin.dll

or

%PROGRAMFILES%\Notepad++\plugins\myAwesomePlugin\myAwesomePlugin.dll

Once you installed the plugin, you can use (and you may configure) it via the menu “Plugins”.

Restart the Notepad++ after putting the plugin

Source : https://npp-user-manual.org/docs/plugins/




回答10:


Before using plugin NOTE plugins are usually in notepad 32 bit , 32 bit plugin is not compatible with 64 bit and vice versa(Recommendation use Notepad++ 32 bit)

Using Import in Notepad++
I tried Import plugin : https://stackoverflow.com/a/54873143/3266623 However it didnt worked for me

Manual way
1. Download and extract .zip file having all .dll plugin files under the path
C:\ProgramData\Notepad++\plugins\
To download use following link or google the same http://docs.notepad-plus-plus.org/index.php/Plugin_Central
2. For placing inside plugins - Make sure to create a separated folder for each plugin

\plugins
   ├ DSpellCheck
   ├ MIME Tools
   └ Converter (etc.)

3. (if plugin contains ext_libs folder) Copy ext_libs to the root notepad folder,Usually contains few ddl files i.e.
C:\Program Files (x86)\Notepad++




回答11:


as an aside, i Couldnt import the .dll if it was already in the plugins folder. I put it in a temp folder on the C drive, and it worked perfectly.




回答12:


For me the with NPP V7.6.6 (x64) this worked:

  1. Download the plugin, and unzip to some local folder (e.g. Downloads). Make sure you download the correct plugin for your Notepad++ (64 or 32 bit - e.g. see ? -> About Notepad++ to find if you are 64-bit)

  2. Check each DLL to ensure it is unblocked (right-click, Properties, and check/select Unblock.

  3. Run Notepad++. If you have UAC enabled, use "Run as Administrator" to run Notepad++ (Hold Shift key down, right-click Notepad++ icon, and select "Run as Administrator").

  4. Go to menu Settings -> Import -> Import plugins...

  5. Use dialog displayed to locate you local copy of the plugin DLL.

  6. Once plugin DLL has been selected, Notepad++ should tell you you need to restart. If it doesn't, then Notepad++ has had some problem - though it doesn't tell you what...!

  7. Restart Notepad++.

The above causes a copy of the plugin DLL to be copied under a subfolder of the same name in C:\Program Files\Notepad++\plugins.

Putting plugins directly into one of the following folders (or sub-folders for each plugin), as suggested in other answers, did not work for me:

a) %PROGRAMDATA%\Notepad++\plugins. b) %ALLDATA%\Notepad++\plugins.




回答13:


Open the Notepad++ as administrator, then import the .dll from the plugin folder that you pasted inside C:Program File/Notepad++/plugins/




回答14:


The solution for me is:

  1. Put the plugin inside /plugin folder (for me it's XMLTools.dll, with some additional files that is instructed to be placed in the installdir)
  2. "Run as administrator" on notepad++.exe
  3. Settings>Import>Import plugin(s)..., browse to intended .dll, select it
  4. Prompt comes up telling me to restart
  5. Done!


来源:https://stackoverflow.com/questions/40015350/how-to-install-a-notepad-plugin-offline

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!