Editing HTML in Dreamweaver > Using external HTML editors > Editing ColdFusion and Active Server files in Dreamweaver |
Editing ColdFusion and Active Server files in Dreamweaver
Dreamweaver displays icons to identify blocks of ColdFusion Markup Language (CFML) or Active Server Pages (ASP) code in the Design view whenever possible.
Note: By default, Dreamweaver never rewrites HTML found in ColdFusion and ASP files.
To edit a block of ASP code from the Design view:
1 | Click the yellow ASP marker to select it. |
2 | In the Property inspector, click the Edit button. |
3 | Edit the ASP code in the dialog box that appears, and then click OK. |
To edit a block of CFML code from the Design view:
1 | Click the CFML marker to select it. |
2 | In the Property inspector, do one of the following: |
Click the Attributes button to edit the tag's attributes and their values or to add new ones. | |
Click the Content button to edit the content that appears between the opening and closing CFML tags. If the selected tag is an empty tag (that is, if it has no closing tag), the Content button is disabled. | |
If you don't see markers or highlighted text where you know ASP or CFML code exists, first make sure that View > Visual Aids > Invisible Elements is enabled. If that option is selected and the icons are still not visible, Dreamweaver can't display the code as CFML or ASP. This can happen, for example, when conditionals are inserted into HTML tags, as in the following ASP code:
<input type="checkbox" name="month" value="October" <% if month="October" then %>checked<% end if %> >
To edit CFML or ASP code in the code editors, do one of the following:
Find the code in the Code view or Code inspector and edit it directly.
To find the CFML or ASP code:
Position the insertion point near the location of the CFML or ASP code in the Design view. The CFML or ASP code will be highlighted in the Code view or Code inspector and you can edit it directly.
For information about processing CFML or ASP code and viewing the results in the Document window, see Customizing the interpretation of third-party tags.