Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Dreamweaver

Thread Tools
 
Search this Thread
 
Old 27 February 2004, 08:58 AM
  #1  
Buckrogers
Scooby Regular
Thread Starter
 
Buckrogers's Avatar
 
Join Date: Aug 2003
Posts: 2,644
Likes: 0
Received 0 Likes on 0 Posts
Default Dreamweaver

Hi

In Macromedia Dreamweaver MX, if I want to comment a line of code out, what do I use?

ie, say I just want to put some text in that explains something, for anybody who looks at the code, but want it to be ignored by DW.

Thanks for any help in advance.

Buck
Old 27 February 2004, 09:40 AM
  #2  
boxst
Scooby Regular
 
boxst's Avatar
 
Join Date: Nov 1998
Posts: 11,905
Likes: 0
Received 0 Likes on 0 Posts
Default

Hello

It HTML:

<!-- comments, comments, comments -->

Steve.
Old 27 February 2004, 09:44 AM
  #3  
Buckrogers
Scooby Regular
Thread Starter
 
Buckrogers's Avatar
 
Join Date: Aug 2003
Posts: 2,644
Likes: 0
Received 0 Likes on 0 Posts
Default

And it does not matter where in the code this is placed?
So long as you start with <!-- and end with --> ??

Thanks Steve.
Old 27 February 2004, 09:54 AM
  #4  
boxst
Scooby Regular
 
boxst's Avatar
 
Join Date: Nov 1998
Posts: 11,905
Likes: 0
Received 0 Likes on 0 Posts
Default

Hello

It doesn't matter where. Well, it isn't good to do it in the middle of a tag as sometimes things get confusing. So you would normally have comments on a seperate line.

Steve.
Old 28 February 2004, 05:00 PM
  #5  
Fatman
Scooby Regular
 
Fatman's Avatar
 
Join Date: Aug 2002
Posts: 2,390
Likes: 0
Received 0 Likes on 0 Posts
Default

I use DW4, so perhaps a little behind the times here! The simplest solution would be to use the drop-down menus. e.g. (in DW4) Insert \ Invisivble Tags \ Comment. That way the software should account for whatever language you're coding in (MX does PHP and ASP, doesn't it?).
Old 29 February 2004, 01:51 PM
  #6  
Buckrogers
Scooby Regular
Thread Starter
 
Buckrogers's Avatar
 
Join Date: Aug 2003
Posts: 2,644
Likes: 0
Received 0 Likes on 0 Posts
Default

This is all pretty new to me!

I have a page of code on view, some text I can edit directly, this text appears black on screen. Some of the code, appears in grey and I want to comment some of this code out, so that its ignored.
This is the code that is in grey and i want to comment out.
<tr>
<td><img src="/images/banners/<%=FindRandomBanner()%>" width="468" height="60"></td>
</tr>

Any ideas?

Thanks

Buck
Old 01 March 2004, 10:16 AM
  #7  
Fatman
Scooby Regular
 
Fatman's Avatar
 
Join Date: Aug 2002
Posts: 2,390
Likes: 0
Received 0 Likes on 0 Posts
Default

If it's just html then add the following tags around the code you want to comment-out...

<!-- <tr>
<td><img src="/images/banners/<%=FindRandomBanner()%>" width="468" height="60"></td>
</tr> -->
Old 01 March 2004, 12:27 PM
  #8  
Buckrogers
Scooby Regular
Thread Starter
 
Buckrogers's Avatar
 
Join Date: Aug 2003
Posts: 2,644
Likes: 0
Received 0 Likes on 0 Posts
Default

It was "greyed" out because I was looking at the "default" page. The text was editable on the template page.

Thanks for your help anyway.

Buck
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Soulgirl
Computer & Technology Related
1
24 June 2005 08:41 PM
Nick
Computer & Technology Related
6
30 April 2005 11:17 PM
kelvin
Computer & Technology Related
4
15 September 2004 04:26 PM
NeilT
Computer & Technology Related
26
08 April 2003 04:00 PM
SiPie
ScoobyNet General
13
09 October 2002 04:11 PM



Quick Reply: Dreamweaver



All times are GMT +1. The time now is 07:50 AM.