When testing new things, I have sometimes to disable measures or meters.
Usualy I do it this way (The only way I know):
;[mPlay]
;Meter=STRING
;X=60
;Y=2
;FontFace=Webdings
;Text="4"
;LeftMouseDownAction=!execute [!RainmeterPluginBang "mWA ;SendMessage 273 40045 0"]
;MouseOverAction=!execute [!RainmeterShowMeter PlayTooltip][!RainmeterRedraw]
;MouseLeaveAction=!execute [!RainmeterHideMeter PlayTooltip][!RainmeterRedraw]
Is there a way like in PHP to comment a whole block like this
/*
[mPlay]
Meter=STRING
X=60
Y=2
FontFace=Webdings
Text="4"
LeftMouseDownAction=!execute [!RainmeterPluginBang "mWA SendMessage 273 40045 0"]
MouseOverAction=!execute [!RainmeterShowMeter PlayTooltip][!RainmeterRedraw]
MouseLeaveAction=!execute [!RainmeterHideMeter PlayTooltip][!RainmeterRedraw]
*/
/* All that hassle with those ; gives me a headdache (or is it the beer :roll: ) */
It is currently December 5th, 2023, 11:25 am
Commenting Stuff and Things
-
- Posts: 73
- Joined: September 5th, 2009, 11:38 am
- Location: Belgium
-
- Developer
- Posts: 22593
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Commenting Stuff and Things
I do agree that block comments would be very nice for testing / debugging skins.Yelleke wrote:When testing new things, I have sometimes to disable measures or meters.
Usualy I do it this way (The only way I know):
;[mPlay]
;Meter=STRING
;X=60
;Y=2
;FontFace=Webdings
;Text="4"
;LeftMouseDownAction=!execute [!RainmeterPluginBang "mWA ;SendMessage 273 40045 0"]
;MouseOverAction=!execute [!RainmeterShowMeter PlayTooltip][!RainmeterRedraw]
;MouseLeaveAction=!execute [!RainmeterHideMeter PlayTooltip][!RainmeterRedraw]
Is there a way like in PHP to comment a whole block like this
/*
[mPlay]
Meter=STRING
X=60
Y=2
FontFace=Webdings
Text="4"
LeftMouseDownAction=!execute [!RainmeterPluginBang "mWA SendMessage 273 40045 0"]
MouseOverAction=!execute [!RainmeterShowMeter PlayTooltip][!RainmeterRedraw]
MouseLeaveAction=!execute [!RainmeterHideMeter PlayTooltip][!RainmeterRedraw]
*/
/* All that hassle with those ; gives me a headdache (or is it the beer :roll: ) */
-
- Moderator
- Posts: 995
- Joined: June 10th, 2009, 12:44 pm
- Location: Sweden
-
- Developer
- Posts: 98
- Joined: August 6th, 2009, 3:03 pm
Re: Commenting Stuff and Things
Use notepad++.
Highlight a section press ctrl+k.
Although I've noticed some issues when trying to use that when you have a really really long line, like the RegExp line.
Highlight a section press ctrl+k.
Although I've noticed some issues when trying to use that when you have a really really long line, like the RegExp line.
-
- Posts: 329
- Joined: July 7th, 2009, 11:10 pm
- Location: Canada
Re: Commenting Stuff and Things
To be able to block comments would be a great feature to have! I just copy the whole thing into a word document and leave it there till I make sure the changes I've made are what I want.
-
- Posts: 73
- Joined: September 5th, 2009, 11:38 am
- Location: Belgium
Re: Commenting Stuff and Things
There must be another way, instead off using a program I dont like to work with.MattKing wrote:Use notepad**
I use EditPadLite.
-
- Developer
- Posts: 98
- Joined: August 6th, 2009, 3:03 pm
Re: Commenting Stuff and Things
The way ini files are read doesn't allow for block commenting. At least not in the way Rainmeter works, you would have to parse the file first and then be like "Oh PS, don't read these lines k."Yelleke wrote: There must be another way, instead off using a program I dont like to work with.
I use EditPadLite.
Not impossible, but it would involve rewriting how ini files are read.
Also EditPadPro can do the commenting thing, but not EditPadLite.. so..

-
- Posts: 73
- Joined: September 5th, 2009, 11:38 am
- Location: Belgium
Re: Commenting Stuff and Things
Now this is an answer that I can live with.MattKing wrote: The way ini files are read doesn't allow for block commenting. At least not in the way Rainmeter works, you would have to parse the file first and then be like "Oh PS, don't read these lines k."
Not impossible, but it would involve rewriting how ini files are read.
Now I know it can"t be done and why.
To bad

-
- Developer
- Posts: 1270
- Joined: April 3rd, 2009, 4:31 am
- Location: NC, US
Re: Commenting Stuff and Things
What happens if you just ; the section name? Maybe Rainmeter can be told to ignore everything after any section name that is commented, until it hits another section name.