Author Topic: Quick "Programming" Question  (Read 1587 times)

Kalisiin

  • Guest
Quick "Programming" Question
« on: November 29, 2009, 06:34:29 am »
I'm curious, if anyone could answer this for me...

Is there a way, in the Dmenu.cfg file, to "comment out" lines, so that they are still there, but don't execute, like you can in PhP, by just adding a few asterisks in front of the line?

I ask this, because, some of the Dingux games I really don't have much interest in, and don't really want to have them show up in the menu.

Yeah, I know I could just take the lines out altogether, but, I really prefer the "commenting out" method over taking out lines if it can be helped.  Because that way, they are easy to put back in, later, if I change my mind.

So...how about it...anyone know if this can be done?
I'd rather my Dingoo only list the games I actually might play.

s3rious_simon

  • Guest
Re: Quick "Programming" Question
« Reply #1 on: November 29, 2009, 11:49:14 am »
just tried:
a '#' at the beginning of the line you want to comment does it ...


edit:
commenting more then one line also works (C-style):

Code: [Select]
/*
blabla
stuff
more stuff
*/

probably commenting a single line with '//' also works.. but i'm too lazy to test atm .. :)
« Last Edit: November 29, 2009, 05:25:11 pm by s3rious_simon »

Kalisiin

  • Guest
Re: Quick "Programming" Question
« Reply #2 on: November 29, 2009, 12:14:48 pm »
just tried:
a '#' at the beginning of the line you want to comment does it ...


edit:
commenting more then one line also works (C-style):

Code: [Select]
/*
blabla
stuff
more stuff
*/

probably commenting a single line with '//' also works.. but i'm to lazy to test atm .. :)


Cool, thanks.

 

Post a new topic
Post a new topic