It is currently March 28th, 2024, 8:25 pm

RainLexer 2.20.0 (syntax highlighter for Notepad++)

Plugins and Addons popular with the Community
Yaron2334
Posts: 13
Joined: January 19th, 2022, 7:22 pm

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

Post by Yaron2334 »

Is there a reason why

Code: Select all

Y=[SectionName:Y]
and

Code: Select all

Y=[SectionName:YH]
are not defined to have a special colour?

Also within the [Variables] section it would be great if

Code: Select all

VarName=
so they are better distinguishable from the rest.

Something like this:
Image
User avatar
Yincognito
Rainmeter Sage
Posts: 7026
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

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

Post by Yincognito »

Yaron2334 wrote: February 15th, 2022, 4:17 pmAlso within the [Variables] section it would be great if

Code: Select all

VarName=
so they are better distinguishable from the rest.
I guess here the reason is that the VarName in that code could be anything (similar to, say, the name of a Shape's gradient, which is also not colored), compared to option names which are known. There is also the possibility of extra-parsing to know which of the Something= belongs to the [Variables] section and which is a regular option down in the skin. For the record, Lua's syntax coloring (or most of the other programming languages I tried) don't color variable names either (with the notable exception of PowerShell, where variable names are easily distinguishable because they are preceded by the $ dollar sign, which makes them easy to be detected when parsing the file).
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
Yaron2334
Posts: 13
Joined: January 19th, 2022, 7:22 pm

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

Post by Yaron2334 »

Yincognito wrote: February 15th, 2022, 4:48 pm I guess here the reason is that the VarName in that code could be anything (similar to, say, the name of a Shape's gradient, which is also not colored), compared to option names which are known. There is also the possibility of extra-parsing to know which of the Something= belongs to the [Variables] section and which is a regular option down in the skin. For the record, Lua's syntax coloring (or most of the other programming languages I tried) don't color variable names either (with the notable exception of PowerShell, where variable names are easily distinguishable because they are preceded by the $ dollar sign, which makes them easy to be detected when parsing the file).
I see, that is logical. I am still fairly new to that space so that is good to know. thank you!
User avatar
Yincognito
Rainmeter Sage
Posts: 7026
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

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

Post by Yincognito »

Yaron2334 wrote: February 15th, 2022, 4:56 pm I see, that is logical. I am still fairly new to that space so that is good to know. thank you!
You're welcome.
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
User avatar
Yincognito
Rainmeter Sage
Posts: 7026
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

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

Post by Yincognito »

jsmorley wrote: July 4th, 2020, 1:22 pmAdded color highlighting support for new SysInfo features LAST_SLEEP_TIME and LAST_WAKE_TIME
Apparently the Process measure never got past the plugin status in RainLexer?

Code: Select all

[Variables]

[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
BackgroundMode=2
SolidColor=47,47,47,255

--- Measures ---

[ProcessRainmeter]
Measure=Process
ProcessName=Rainmeter.exe
RegExpSubstitute=1
Substitute="^-1$":"not running","^1$":"running"

---Meters---

[Result]
Meter=String
FontFace=Consolas
FontColor=255,255,255,230
FontSize=16
AntiAlias=1
MeasureName=ProcessRainmeter
Text=Rainmeter is %1
Process.jpg
Notice the light red color of Process as the value of the Measure option, as if it was wrong. Just stumbled across it by chance while working on a related issue. Not a big deal, but I thought you should know.
You do not have the required permissions to view the files attached to this post.
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
oZone
Posts: 154
Joined: May 14th, 2018, 4:46 pm

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

Post by oZone »

I have made pull request.

Notepad++ will soon use scintilla 5, so I've updated all 3rd party files.
I've also added Process measure to valid keywords.

@jsmorley, could you check it, thx.
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

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

Post by jsmorley »

oZone wrote: April 3rd, 2022, 1:37 pm I have made pull request.

Notepad++ will soon use scintilla 5, so I've updated all 3rd party files.
I've also added Process measure to valid keywords.

@jsmorley, could you check it, thx.
Thanks! Updated, built, and released!

https://forum.rainmeter.net/viewtopic.php?p=40071#p40071

Note that we have upgraded both Rainmeter and RainLexer to use the new Visual Studio 2022 Community version.
oZone
Posts: 154
Joined: May 14th, 2018, 4:46 pm

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

Post by oZone »

jsmorley wrote: April 3rd, 2022, 1:53 pm Thanks! Updated, built, and released!

https://forum.rainmeter.net/viewtopic.php?p=40071#p40071
Cool.

Sorry forgot to mention, that some changes in recent Notepad++ 3rd party files will make minimal required Notepad++ v8.3+.
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

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

Post by jsmorley »

oZone wrote: April 3rd, 2022, 1:57 pm Cool.

Sorry forgot to mention, that some changes in recent Notepad++ 3rd party files will make minimal required Notepad++ v8.3+.
Ah, Ok. I will update the first post of this thread.
oZone
Posts: 154
Joined: May 14th, 2018, 4:46 pm

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

Post by oZone »

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)