Editing HTML in Dreamweaver > Inserting scripts > Editing a script |
You can edit a script in a code editor or the Design view.
To edit the script in the Code view:
Find the script in the Code view and edit it directly. Selecting the Script marker in the design view will highlight the script in the code view.
To edit the script in the Design view:
1 | Select the Script marker. |
2 | In the Property inspector, click the Edit button. |
If you linked to an external script file, the file automatically opens in Code view, where you can make your edits. Otherwise, the Script Properties dialog box opens and you can edit the script in the Script text box.
Note: If there is code between the script
tags, the Script Properties dialog box will open, even if there is also a link to an external script file.
The following properties appear in the Script Properties dialog box (and the Property inspector) when a script marker is selected:
Language specifies either JavaScript or VBScript as the language of the script. | |
Type specifies the type of script, either client-side or server-side. | |
Source specifies an externally linked script file. Click the folder icon to choose the file, or type the path. | |
Script is where you edit/write your script. |
To check for balanced braces:
1 | Place the insertion point in the nested code you want to check. |
2 | Choose Edit > Balance Braces. |
The enclosing matching tags are highlighted in your code. Choosing Edit > Balance Braces again will highlight the matching tags that enclosed the previous selection. | |