All questions regarding lexer highlighting schemes are discussed here...
sl23
Posts: 154 Joined: 29.01.2013 10:04
Post
by sl23 » 20.12.2022 21:38
In Rainmeter skins, there is often a second usage for square brackets, for example:
Code: Select all
MouseOverAction=[!SetOption #CURRENTSECTION# StrokeAlpha "Stroke Color #Green#"][!SetOption #CURRENTSECTION#Free Text "##CURRENTSECTION#Name#"][!ShowMeter #CURRENTSECTION#Free][!UpdateMeter *][!Redraw]
Would it be possible to show these in a specified colour? Preferably separate from the Section colouring of square brackets.
The same for the Pipe symbol:
Code: Select all
Shape=Ellipse 0,0,5 | Extend FillColor | StrokeWidth 2 | Extend StrokeAlpha
I have very little experience programming so haven't a clue how to follow the tutorial btw, I have looked at it. I'll take a look again when i have more time.
Thanks for any advice.
Last edited by
sl23 on 21.12.2022 10:32, edited 1 time in total.
Live for an ideal and leave no place in the mind for anything else.
main Alexey
Posts: 2236 Joined: 25.08.2021 18:15
Post
by main Alexey » 21.12.2022 09:52
Pls change the title of the topic: not INI lexer, but Rainmeter lexer. You need 'Rainmeter' lexer from AddonsManager.
sl23
Posts: 154 Joined: 29.01.2013 10:04
Post
by sl23 » 21.12.2022 10:25
I tried the Rainmeter lexer in notepad++ but didn't like how it worked. I just want to tweak the ini lexer to highlight these two things.
Can I do that or is it better to create a new lexer?
I'll give the CT version a go, didn't know there was one!
Thanks
Last edited by
sl23 on 21.12.2022 10:30, edited 1 time in total.
Live for an ideal and leave no place in the mind for anything else.
main Alexey
Posts: 2236 Joined: 25.08.2021 18:15
Post
by main Alexey » 21.12.2022 10:27
Plugins / Addons Manager / Install,
find 'Rainmeter' lexer and install it.
Pls test with it and suggest for it.
sl23
Posts: 154 Joined: 29.01.2013 10:04
Post
by sl23 » 21.12.2022 10:35
OK thanks Alexey, I'll try that out later
Live for an ideal and leave no place in the mind for anything else.
main Alexey
Posts: 2236 Joined: 25.08.2021 18:15
Post
by main Alexey » 21.12.2022 10:38
As I see, this lexer already highlightes many things, also [] and pipe-char, also quoted strings and #names# and !names.
Last edited by
main Alexey on 21.12.2022 10:42, edited 1 time in total.
sl23
Posts: 154 Joined: 29.01.2013 10:04
Post
by sl23 » 21.12.2022 13:14
That didn't cross my mind, but definitely required information thanks for the link!
Live for an ideal and leave no place in the mind for anything else.