It is currently March 29th, 2024, 9:55 am

Commenting Stuff and Things

Report bugs with the Rainmeter application and suggest features.
User avatar
Yelleke
Posts: 73
Joined: September 5th, 2009, 11:38 am
Location: Belgium

Commenting Stuff and Things

Post by Yelleke »

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: ) */
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Commenting Stuff and Things

Post by jsmorley »

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: ) */
I do agree that block comments would be very nice for testing / debugging skins.
sgtevmckay

Re: Commenting Stuff and Things

Post by sgtevmckay »

agreed
User avatar
Chewtoy
Moderator
Posts: 995
Joined: June 10th, 2009, 12:44 pm
Location: Sweden

Re: Commenting Stuff and Things

Post by Chewtoy »

sgtevmckay wrote:agreed
I don't think, therefore I'm not.
MattKing
Developer
Posts: 98
Joined: August 6th, 2009, 3:03 pm

Re: Commenting Stuff and Things

Post by MattKing »

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.
User avatar
karmat
Posts: 329
Joined: July 7th, 2009, 11:10 pm
Location: Canada

Re: Commenting Stuff and Things

Post by karmat »

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.
User avatar
Yelleke
Posts: 73
Joined: September 5th, 2009, 11:38 am
Location: Belgium

Re: Commenting Stuff and Things

Post by Yelleke »

MattKing wrote:Use notepad**
There must be another way, instead off using a program I dont like to work with.
I use EditPadLite.
MattKing
Developer
Posts: 98
Joined: August 6th, 2009, 3:03 pm

Re: Commenting Stuff and Things

Post by MattKing »

Yelleke wrote: There must be another way, instead off using a program I dont like to work with.
I use EditPadLite.
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.


Also EditPadPro can do the commenting thing, but not EditPadLite.. so.. :(
User avatar
Yelleke
Posts: 73
Joined: September 5th, 2009, 11:38 am
Location: Belgium

Re: Commenting Stuff and Things

Post by Yelleke »

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 this is an answer that I can live with.
Now I know it can"t be done and why.

To bad
:oops:
dragonmage
Developer
Posts: 1270
Joined: April 3rd, 2009, 4:31 am
Location: NC, US

Re: Commenting Stuff and Things

Post by dragonmage »

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.