Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:48

Comment or Rem out lines of code?

Poster: rudy
Dated: Friday January 16 2004 - 2:44:47 GMT

One of the buttons on my menu has several drop down links that I don't want. I just want the button to be active and no drop down links.

How do I rem or comment out the lines of code I don't want without having to remove the line.

Is it a double forward slash // in front of the line?

Please help

Poster: fredlongworthhighschool
Dated: Friday January 16 2004 - 11:51:28 GMT

Yes, just add the double slash and a space and it will ignore that line. Very useful for temporilly removing options you may need again in the future.

Poster: kevin3442
Dated: Saturday January 17 2004 - 0:46:46 GMT

My two cents:

A space after the // is nice for formatted comments that you want in the code for documentation, but it's not really necessary.
//this line is treated as a comment

Leaving the space out when you're just testing things will save a little editing time. Last thing FYI... for multi-line comments, use the /*comments*/ approach:
Here are a couple
of lines of comments