Before opening a Cold Fusion or Active Server Page file in Dreamweaver, choose Edit > Preferences, then select HTML Rewriting and turn off Fix Invalidly Nested and Unclosed Tags and Remove Extra Closing Tags.
Dreamweaver displays icons to identify blocks of Cold Fusion Markup Language (CFML) or Active Server Page (ASP) code in the Document window whenever possible.
To edit a block of ASP code from the Document window:
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 Document window:
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 existing 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 empty (that is, it has no closing tag), the Content button is disabled. |
![]() |
If you do not see markers where you know ASP or CFML code exists, first make sure that View > Invisible Elements is on. If it is on and the icons are still not visible, Dreamweaver does not recognize the code as CFML or ASP. This can happen 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 when a marker does not appear:
1 | In the Document window, position the cursor near where you know the CFML or ASP code exists. |
2 | Choose Window > HTML to open the HTML inspector. |
3 | Click the title bar or status bar of the HTML inspector. |
Do not click in the middle of the inspector or you will move the cursor away from the CFML or ASP code you want to edit. | |
4 | Edit the code directly in the HTML inspector. |
5 | Press F10 to close the HTML inspector and return to the Document window. |
![]() |
For information about processing CFML or ASP code and viewing the results in the Document window, see Extending Dreamweaver overview.