You are here

Plugins, Auto-completions and User Defined Languages location in Notepad++

4 posts / 0 new
Last post
acicovic
Offline
Last seen: 1 week 3 days ago
Joined: 2015-11-05 02:43
Plugins, Auto-completions and User Defined Languages location in Notepad++

Hi,

Thank you for all the work you put into this software. I am coming from a standard Notepad++ installation and I want to install some Plugins, Auto-completions and User Defined Languages in my new portable installation.

Regarding plugins, there are three possible folders:

\Notepad++Portable\Data\Config\plugins\
\Notepad++Portable\App\DefaultData\Config\plugins\
\Notepad++Portable\App\Notepad++\plugins\

About User Defined Languages, I see that my original installation puts them in the root folder. Again, I see 2 possible folders:

\Notepad++Portable\Data\Config\
\Notepad++Portable\App\Notepad++\

Auto-completions seem more straight-forward but I may be missing something:

\Notepad++Portable\App\Notepad++\plugins\APIs\

Which of those folders would be the best/correct option and why?

Thanks!

Gord Caswell
Gord Caswell's picture
Offline
Last seen: 7 hours 23 min ago
DeveloperModerator
Joined: 2008-07-24 18:46
Data

Anything under the \Data\ directory is always the preferred location.

With regards to auto-completions, the location you've indicated is correct.

John T. Haller
John T. Haller's picture
Offline
Last seen: 1 hour 2 min ago
AdminDeveloperModerator
Joined: 2005-11-28 22:21
Plugins

The location to store the actual plugins in is \Notepad++Portable\App\Notepad++\plugins\. For the others, \Notepad++Portable\App\DefaultData\Config\plugins\ is, appropriately, where the default plugins config is stored and \Notepad++Portable\Data\Config\plugins\ is where your current plugins settings are stored between sessions of the app so they can be easily backed up.

Sometimes, the impossible can become possible, if you're awesome!

acicovic
Offline
Last seen: 1 week 3 days ago
Joined: 2015-11-05 02:43
Result

Hi,

According to my tests the \Data\Config\plugins\ directory is not copied during runtime (so plugins added there are not available). However, its config subdirectory is copied. So based on my testing and what John said here are my conclusions:

Plugin .dll/binary files should be copied to \App\Notepad++\plugins\
Plugin .ini/settings files should be copied to \Data\Config\plugins\config\
Auto-complete files should be copied to \App\Notepad++\plugins\APIs\
Unsaved/dirty file contents get saved to \App\Notepad++\backup\

All other settings should get usually saved in \Data\Config\. For example:
User preferences: \Data\Config\config.xml
Context menu: \Data\Config\contextMenu.xml
Session (opened documents): \Data\Config\session.xml
Macros: \Data\Config\shortcuts.xml
User-defined languages: \Data\Config\userDefineLang.xml

Log in or register to post comments