It is currently April 16th, 2024, 11:35 am

RainLexer 2.20.0 (syntax highlighter for Notepad++)

Plugins and Addons popular with the Community
poiru
Developer
Posts: 2872
Joined: April 17th, 2009, 12:18 pm

RainLexer 1.1.0 beta 2

Post by poiru »

Grab it from: http://poiru.net/RainLexer110b2.zip

Changes:
- Fixed that 'Refresh Skin' didn't work

Adding Refresh Skin/Refresh All to right-click context menu:
Open Notepad++, select Settings -> Edit Popup ContextMenu. Then, add the following lines into the file, save the file, and restart Notepad++:

Code: Select all

        <Item id="0"/>
        <Item PluginEntryName="RainLexer" PluginCommandItemName="Refresh Skin" />
        <Item PluginEntryName="RainLexer" PluginCommandItemName="Refresh All" />
        <Item id="0"/>
If you want them under a submenu, use:

Code: Select all

        <Item id="0"/>
        <Item FolderName="Rainmeter" PluginEntryName="RainLexer" PluginCommandItemName="Refresh Skin" />
        <Item FolderName="Rainmeter" PluginEntryName="RainLexer" PluginCommandItemName="Refresh All" />
        <Item id="0"/>


Assigning shortcuts to Refresh Skin/Refresh All:
Use Settings -> Shortcut Mapper -> Plugin commands tab.
User avatar
donutmtoazt
Posts: 50
Joined: July 10th, 2011, 9:15 am
Location: Fresno, CA

Re: RainLexer 1.0.2 (syntax highlighter for Notepad++)

Post by donutmtoazt »

You're a genius!! This is the greatest thing since sliced bread!
This is my keyboard. There are many like it, but this one is mine.
User avatar
GHOST®
Posts: 55
Joined: March 11th, 2011, 6:33 pm
Location: Garden City, MI

Re: RainLexer 1.0.2 (syntax highlighter for Notepad++)

Post by GHOST® »

]
poiru wrote:Grab it from: http://poiru.net/RainLexer110b2.zip

Changes:
- Fixed that 'Refresh Skin' didn't work

Adding Refresh Skin/Refresh All to right-click context menu:
Open Notepad++, select Settings -> Edit Popup ContextMenu. Then, add the following lines into the file, save the file, and restart Notepad++:

Code: Select all

 <Item id="0"/>
<Item PluginEntryName="RainLexer" PluginCommandItemName="Refresh Skin" />
<Item PluginEntryName="RainLexer" PluginCommandItemName="Refresh All" />
<Item id="0"/>
If you want them under a submenu, use:

Code: Select all

 <Item id="0"/>
<Item FolderName="Rainmeter" PluginEntryName="RainLexer" PluginCommandItemName="Refresh Skin" />
<Item FolderName="Rainmeter" PluginEntryName="RainLexer" PluginCommandItemName="Refresh All" />
<Item id="0"/>


Assigning shortcuts to Refresh Skin/Refresh All:
Use Settings -> Shortcut Mapper -> Plugin commands tab.
NP++ContextMenu.jpg
<?xml version="1.0" encoding="UTF-8" ?>
<!--
By modifying this file, you can customize your context menu popuped as right clicking on the edit zone.
It may be more convinient to access to your frequent used commands via context menu than via the top menu.

Please check "How to Customize the Context Menu" on:
http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=Context_Menu
-->

Code: Select all

<NotepadPlus>
    <ScintillaContextMenu>
		<!-- 
		Use MenuEntryName and MenuItemName to localize your commands to add. 
		The values should be in English but not in translated language.
		(You can set Notepad++ language back to English from Preferences dialog via menu "Settings->Preferences...")
		-->
<Item MenuEntryName="Plugins" MenuItemName="Refresh Skin"/>
<Item MenuEntryName="Plugins" MenuItemName="Refresh All"/>
		
<Item id="0"/>
<Item MenuEntryName="Edit" MenuItemName="Undo"/>
<Item MenuEntryName="Edit" MenuItemName="Redo"/>
		
<Item id="0"/>
<Item MenuEntryName="Edit" MenuItemName="Select all"/>
<Item MenuEntryName="Edit" MenuItemName="Cut"/>
<Item MenuEntryName="Edit" MenuItemName="Copy"/>
<Item MenuEntryName="Edit" MenuItemName="Paste"/>
<Item MenuEntryName="Edit" MenuItemName="Delete"/>

<Item id="0"/>
<Item MenuEntryName="View" MenuItemName="Move to Other View"/>
<Item MenuEntryName="View" MenuItemName="Clone to Other View"/>
		
<Item id="0"/>
<Item MenuEntryName="View" MenuItemName="Fold All"/>
<Item MenuEntryName="View" MenuItemName="Unfold All"/>
<Item MenuEntryName="Edit" MenuItemName="Toggle block comment"/>
		
<Item id="0"/>
<Item MenuEntryName="Search" FolderName="Search" MenuItemName="Find in Files..."/>
<Item MenuEntryName="Search" FolderName="Search" MenuItemName="Incremental Search"/>
<Item MenuEntryName="Search" FolderName="Search" MenuItemName="Go to..."/>
<Item MenuEntryName="Search" FolderName="Search" MenuItemName="Find..."/>
<Item MenuEntryName="Search" FolderName="Search" MenuItemName="Replace..."/>
		
<Item id="0"/>
<Item MenuEntryName="Search" FolderName="Bookmarks" MenuItemName="Previous Bookmark"/>
<Item MenuEntryName="Search" FolderName="Bookmarks" MenuItemName="Next Bookmark"/>
<Item MenuEntryName="Search" FolderName="Bookmarks" MenuItemName="Cut Bookmarked Lines"/>
<Item MenuEntryName="Search" FolderName="Bookmarks" MenuItemName="Copy Bookmarked Lines"/>
		
<Item id="0"/>
<Item MenuEntryName="File" MenuItemName="Save"/>
<Item MenuEntryName="File" MenuItemName="Save As..."/>
    </ScintillaContextMenu>
</NotepadPlus>
Thank You Poiru!!
Using the context menu and mapped shortcuts definately simplifies things!!. :o)
You do not have the required permissions to view the files attached to this post.
Last edited by GHOST® on August 6th, 2011, 4:53 am, edited 1 time in total.
"Do you want to be healed, now? Or would you prefer to bleed to death so I can try my hand at resurrection?"
User avatar
Mordasius
Posts: 1171
Joined: January 22nd, 2011, 4:23 pm
Location: GMT +8

Re: RainLexer 1.1.0 beta 2

Post by Mordasius »

poiru wrote: Changes: - Fixed that 'Refresh Skin' didn't work
This works a treat and having 'Refresh Skin' on the right-click context menu saves a lot of minimising and right-clicking on the skins. Many Thanks...
User avatar
GHOST®
Posts: 55
Joined: March 11th, 2011, 6:33 pm
Location: Garden City, MI

Re: RainLexer 1.0.2 (syntax highlighter for Notepad++)

Post by GHOST® »

poiru wrote: Thanks, I'll take care of that for the next release.
I may be clueless here,but according to a Properties check on the installer, I currently am using version 1.1.0 beta 1

Is this the current version ??

If so, ROUNDLINE is still mispelled, and there is no !SetOption Bang as well as they all still appear to start with !Rainmeter. Maybe I misread something somewhere as I thought you streamlined the !Bangs??

I copied the Rainmeter.xml from the included WithEquals Folder to my Rainmeter API folder. The actual program folder, not the Roaming one, but the !Bangs seem the same as B4 upgrading to this 1.1.0 beta 1, hence my wondering if I actually DLd the current V??

Anyways, thanks for all this fine work, wish more people in the world would go out of their way to make things easier for others as well as themselves. :o)

Edit: Am currently using the above 1.1.0 beta 2 version
"Do you want to be healed, now? Or would you prefer to bleed to death so I can try my hand at resurrection?"
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: RainLexer 1.0.2 (syntax highlighter for Notepad++)

Post by jsmorley »

Meter=ROUNDLINE highlights correctly for me...

While it is true that !SetOption and a couple of other new keywords have not yet been put into RainLexer, (patience...) all the existing ones seem to highlight correctly for me as either !SetVariable or !RainmeterSetVariable, which is as it should be.

That ROUNDLINE issue makes me think you have an installation /version issue perhaps. Poiru will be better able to check that with you.

As to missing keywords poiru. I'm not sure if this is all but:

RegExpSubstitute
!SetOption
!SetOptionGroup

Probably need to be added. Not sure it you want to do anything with #*VarName*# or not. [*MeasureName*] is not an issue, as [MeasureNames] do not highlight anyway unless they begin a line.
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: RainLexer 1.0.2 (syntax highlighter for Notepad++)

Post by smurfier »

Roundline does highlight but in the autocomplete dropdown it comes up ROUNLINE.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: RainLexer 1.0.2 (syntax highlighter for Notepad++)

Post by jsmorley »

smurfier wrote:Roundline does highlight but in the autocomplete dropdown it comes up ROUNLINE.
I see... I don't use auto-complete, so never caught that. Very well, carry on.
Cevandri
Posts: 18
Joined: August 6th, 2011, 9:36 pm
Location: Sweden -> gothenburg

Re: RainLexer 1.0.2 (syntax highlighter for Notepad++)

Post by Cevandri »

Some people knows how to make my day great and you are one of them!
Thanks A LOT for the Syntax Highligther and for the most! Refresh Skin! I just love being able to refresh skin/all that I am working when working in OtherView Fullscreen and Skin in Stay Topmost :great: :thumbup:


Update... Don't wanan bump it
I think the Bang "!SetOption" isnt highlighted as Bang =/
Old rainmeter user..... 4+ years ago I was active... :-p 8-)
poiru
Developer
Posts: 2872
Joined: April 17th, 2009, 12:18 pm

RainLexer 1.1.0 available!

Post by poiru »

Download: http://rainlexer.googlecode.com/files/RainLexer110.zip

Instructions: http://code.google.com/p/rainlexer/wiki/Installation

Changes:
- Added support for "Refresh skin" and "Refresh all" directly through Notepad++
- Added support for escaped variables (e.g. #*VariableName*#), which will not be highlighted
- Updated keywords