It is currently September 27th, 2022, 4:53 pm

RainLexer 2.20.0 (syntax highlighter for Notepad++)

Plugins and Addons popular with the Community
User avatar
Yincognito
Rainmeter Sage
Posts: 4806
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

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

Post by Yincognito »

oZone wrote: April 5th, 2022, 3:04 pm Missing bangs SetWindowPosition and SetAnchor.

Missing options OnHover and DefaultOnHover.

Both options HideOnMouseOver and DefaultHideOnMouseOver are deprecated.

Also documentation for options above https://docs.rainmeter.net/manual/settings/skin-sections/ and https://docs.rainmeter.net/manual/skins/rainmeter-section/defaults/ are using deprecated version.

btw
Documentation for RegValue=REG_BINARY is missing (https://docs.rainmeter.net/manual/measures/registry/#RegValue)
Damn, I use SetWindowPosition in one of my skins, but never noticed it's not colored as it should be - good catch(es)! :thumbup:

That being said, it looks all these items were recently added or adjusted in Rainmeter. I suppose the modifications to RainLexer are now done manually, so I wonder if there isn't a way to automate the process (e.g. export a list / "dictionary" of all options, bangs, sections, etc.) each time a new Rainmeter version is built, so the list can be used to either update the necessary changes to RainLexer or check against the previous list to highlight the needed adjustments, in order to avoid otherwise human omissions. Sure, the regexes or whatever that are used to color text in Notepad++ would still have to be done manually, but at least a full list of what should be done would be available as a reference (incidentally, this looks like an interesting skin project :D). If this is worth bothering with and building the "system" doesn't take more time than manually checking things, that is...
User avatar
Active Colors
Moderator
Posts: 1182
Joined: February 16th, 2012, 3:32 am
Location: Berlin, Germany

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

Post by Active Colors »

DisableAutoUpdate= in Rainmeter.ini is not being highlighted in the 2.20.0.
User avatar
SilverAzide
Rainmeter Sage
Posts: 2047
Joined: March 23rd, 2015, 5:26 pm

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

Post by SilverAzide »

Another low priority item for the next release (after 2.20). Measure=WiFiStatus is not recognizing WiFiStatus as a measure (the old plugin syntax is OK).
Gadgets Wiki GitHub More Gadgets...
User avatar
Yincognito
Rainmeter Sage
Posts: 4806
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

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

Post by Yincognito »

I can't remember what other small inconsistencies I saw (and for some of them, I'm pretty sure it's Notepad++ and not RainLexer at fault), but as a potential addition, would it make sense to highlight also $MouseVariable$ or [&NestedMeasure] similar to the other #Variables#?

I said that I didn't remember, yet I saw one right now in one of my codes: !SetWindowPosition is not highlighted as a bang.
Also in something like [!SetWindowPosition "49.85%" "48.85%" "50.00%" "50.00%"] or [!SetOption Flip Formula (Clamp((Flip+1),0,3))], the numbers aren't properly highlighted.