It is currently December 12th, 2018, 4:09 am

Notepad++: Snippets for Rainmeter

Share your custom plugins and applications to enhance Rainmeter.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 3050
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Notepad++: Snippets for Rainmeter

eclectic-tech » November 28th, 2018, 2:56 am

NOTE: This is a copy of instructions posted by JSMorley as it relates to installing Snippets by Frank Fesevur after upgrading to version 7.6 of Notepad++

Note that some folks may run into issues with this upgrade. Here are some tips on how to get things working clean and smooth...

First, if you are installing Notepad++ for the first time, ignore this post.
Second, if you already upgraded and have Rainlexer working, use NPP to install Snippets from "Plugins", "Plugin Admin".

If you have been running Notepad++ for some time, one of the things that can (and almost certainly will) happen is that there will be a lot of unneeded, and even harmful, "debris" hanging around from earlier versions. Over the years they have moved where things are stored and what files are used for "settings", and the old stuff is often left behind. This can cause massive problems going forward!

So here is the current layout of where things are with Notepad++ as of version 7.6

The application, 64bit or 32bit depending on what you installed:
C:\Program Files\Notepad++
C:\Program Files (x86)\Notepad++

Settings for the application. Changes you make to styles and such:
C:\Users\YourName\AppData\Roaming\Notepad++
This can also be accessed in Explorer with %APPDATA%\Notepad++

The files in this folder that contain the settings you might want to keep and protect, so you don't have to start over are:

config.xml
contextMenu.xml
functionList.xml
langs.xml
session.xml
shortcuts.xml
stylers.xml
plugins\config\NppSnippets.sqlite

Before you start doing anything, make a backup copy of just these settings files. We are going to want to put them back at the end.

.dll executable files for plugins:

C:\Users\YourName\AppData\Local\Notepad++\plugins
This can also be accessed in Explorer with %LOCALAPPDATA%\Notepad++\plugins

If it even exists, there is no need to back up anything in this folder. This is a new folder location as of Notepad++ 7.6.

Ok, now we want to completely uninstall Notepad++. After doing so ensure that the following folders don't exist:
C:\Program Files\Notepad++
C:\Program Files (x86)\Notepad++
C:\Users\YourName\AppData\Roaming\Notepad++
C:\Users\YourName\AppData\Local\Notepad++

Then install the latest (7.6 as of this writing) version of Notepad++ from https://notepad-plus-plus.org/

32bit or 64bit is up to you, although be aware that while Snippets supports either, many other older 3rd-party plugins you might be using may not work, and require an upgrade (if one exists) if you change from using 32bit Notepad++ to 64bit Notepad++.

Then install Snippets from Snippets.
His instructions need updating, so to install manually,
copy NppSnippets.dll to C:\Users\YourName\AppData\Local\Notepad++\plugins\NppSnippets folder (you may need to create this folder),
and copy NppSnippets.sqlite to C:\Users\YourName\AppData\Roaming\Notepad++\plugins\config folder and (re)start Notepad++.

OR you can use NPP and from the "Plugins" menu, select "Plugin Admin"; look for "Snippets" plugin in the list, it is by Author: Frank Fesevur and version 1.4. If you use the "Plugin Admin" method, the plugin may generate an error message "Cannot find database" and close; don't panic, follow the next step to copy NPPSnippets.sqlite back to their original locations.

Then copy the settings files you backed up above, back to their original locations in C:\Users\YourName\AppData\Roaming\Notepad++

Start Notepad++ and edit a skin to be sure Snippets is working and that any changes you made to the style or colors in that, or in Notepad++ in general, are still what you want. They should be.
User avatar
jsmorley
Developer
Posts: 18476
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Notepad++: Snippets for Rainmeter

jsmorley » November 28th, 2018, 3:13 am

Note that if you have already gone though this process to get RainLexer working properly, there is no need to go through all of this again. Simply use Plugin Admin in Notepad++, and install the "Snippets" plugin. You won't get any error, there is at least one "default" library included, I think an ASCII table or something. Then download the .zip file in the first post of this thread, unzip it, and using the functionality in Snippets in Notepad++, import one or both sets of Rainmeter snippets. Bob's your uncle...
User avatar
eclectic-tech
Rainmeter Sage
Posts: 3050
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Notepad++: Snippets for Rainmeter

eclectic-tech » November 28th, 2018, 12:38 pm

Thanks... I edited the post so users can skip your steps if they already have it upgraded. :great: