It is currently December 12th, 2018, 4:07 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 » September 22nd, 2017, 1:23 am

Information on Setting Rainmeter Association to show [Sections] after Updating Notepad++

I recently updated Notepad++ to v7.5.1 and lost my FunctionList association for Rainmeter file [Sections].
This is to be expected because languages are added to Notepad++ and the langID will change for ones added by end users.

Normally, this would be a simple matter of:
  • opening "AppData\Roaming\Notepad++\functionlist.xml"
  • increasing the langID one number at a time
  • closing and re-opening Notepad++
  • then opening a Rainmeter skin to test if the sections appear.
My advice is "Don't get discouraged" if you have to increase that number quite a bit to get the association working again...
I had to increase the langID by almost 30 numbers before it worked; originally it was 58 ... now it is 85 :jawdrop

Depending on how often you update Notepad++, just be aware that quite a few languages may have been added to it's library.

The association number for the Rainmeter language may need to increased significantly to get sections to show in the functionlist. :great:
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 16th, 2017, 5:38 pm

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: 3050
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Notepad++: Snippets for Rainmeter

eclectic-tech » April 30th, 2018, 1:47 am

+ 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: 7160
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Notepad++: Snippets for Rainmeter

balala » April 30th, 2018, 10:03 am

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: 3050
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Notepad++: Snippets for Rainmeter

eclectic-tech » April 30th, 2018, 10:49 am

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: 7160
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Notepad++: Snippets for Rainmeter

balala » April 30th, 2018, 11:29 am

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: 18476
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Notepad++: Snippets for Rainmeter

jsmorley » April 30th, 2018, 11:31 am

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: 3050
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Notepad++: Snippets for Rainmeter

eclectic-tech » May 4th, 2018, 8:50 pm

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: 3050
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Notepad++: Snippets for Rainmeter

eclectic-tech » May 14th, 2018, 4:52 pm

  • 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: 3050
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Notepad++: Snippets for Rainmeter

eclectic-tech » June 18th, 2018, 8:26 pm

  • 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