It is currently December 4th, 2021, 11:27 pm

Notepad++: Snippets for Rainmeter

Plugins and Addons popular with the Community
User avatar
eclectic-tech
Rainmeter Sage
Posts: 4498
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Notepad++: Snippets for Rainmeter

Post by eclectic-tech »

Just a "Heads Up" about getting [Sections} showing...

Member RiseUp discovered that the initial langID for INI files MUST be in functionList.xml or this will not work!

So when you are editing the file, make sure you have the initial INI association:
<association langID="13" id="ini_section"/>
In the list of associations when you add the langID for Rainmeter.
associations.png
Thanks RiseUp!
You do not have the required permissions to view the files attached to this post.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 4498
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Notepad++: Snippets for Rainmeter

Post by eclectic-tech »

+ Updated Rainmeter Snippet Libraries to include the Usage Monitor measure Plugin
- Removed deprecated plugins: AdvancedCPU, PerfMon, & iTunes

Download the updated library from the first post in this thread...

Remember to delete any current Rainmeter Templates and Rainmeter Action Bangs libraries before importing the updated versions.
User avatar
balala
Rainmeter Sage
Posts: 13516
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Notepad++: Snippets for Rainmeter

Post by balala »

eclectic-tech wrote:- Removed deprecated plugins: AdvancedCPU, PerfMon, & iTunes
Not a good idea, because for backward compatibility those options should have to remain valid. I assume...
User avatar
eclectic-tech
Rainmeter Sage
Posts: 4498
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Notepad++: Snippets for Rainmeter

Post by eclectic-tech »

balala wrote:Not a good idea, because for backward compatibility those options should have to remain valid. I assume...
Well, they are still valid plugins...

Removing them from the Snippets list does not stop them from working, it simply does not offer them as an option to insert in the code.

We want authors to use the Usage Monitor plugin instead of these deprecated plugins.
User avatar
balala
Rainmeter Sage
Posts: 13516
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Notepad++: Snippets for Rainmeter

Post by balala »

eclectic-tech wrote:Removing them from the Snippets list does not stop them from working, it simply does not offer them as an option to insert in the code.
Yeah, obviously, but still being working plugins, would be good to be still kept in the code highlighting. There still are many old codes to work with.
User avatar
jsmorley
Developer
Posts: 22416
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Notepad++: Snippets for Rainmeter

Post by jsmorley »

balala wrote:Yeah, obviously, but still being working plugins, would be good to be still kept in the code highlighting. There still are many old codes to work with.
But this Snippets thing is not about code highlighting.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 4498
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Notepad++: Snippets for Rainmeter

Post by eclectic-tech »

The Code snippets have been updated to reflect the change to internal measures that were previously plugins:
  • MediaKeys
  • NowPlaying
  • RecycleManager
  • Webparser
To assist in learning all the available options for measures and meters, links to the manual have been added to all snippets.

Get the latest NPPSnippets from the first post.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 4498
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Notepad++: Snippets for Rainmeter

Post by eclectic-tech »

  • Added mouse bangs to Rainmeter Action Bangs library
  • Renamed actions bangs so similar actions are grouped
Updated download file in first post
User avatar
eclectic-tech
Rainmeter Sage
Posts: 4498
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Notepad++: Snippets for Rainmeter

Post by eclectic-tech »

  • Corrected MouseAction group bangs for proper syntax order (See: This Post)
Attached file in first post updated with changes.

Note: The update includes "Templates" and "Action Bangs" libraries, but you only need to import the updated "Rainmeter Action Bangs" library.
Remember to delete the old action bangs library before importing the updated one... :17readbook the first post instructions
User avatar
eclectic-tech
Rainmeter Sage
Posts: 4498
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Notepad++: Snippets for Rainmeter

Post by eclectic-tech »

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.