Inserting and Formatting Text > Inserting text and objects > Copying and pasting HTML source code in Dreamweaver |
Copying and pasting HTML source code in Dreamweaver
You can copy and paste HTML source code from another application or from the Code view itself. You can choose to have the HTML code copied and pasted as text or as code with tags intact, depending on how you copy and paste it.
To copy HTML source code and paste in Code view:
1 | Copy the code from another application (like BBEdit or HomeSite) or from the Code view or Code inspector in Dreamweaver, and place the insertion point in the Code view. |
2 | Choose Edit > Paste, and select Refresh Design View from the toolbar. |
For example, copy the HTML source code for a table from BBEdit and paste it in the Code view of Dreamweaver in order for it to appear as a table in the Design view. | |
If you want the HTML source code to appear as text, place the insertion point in in the Design view directly and choose Edit > Paste to paste the code as text. You might choose to do this if your Dreamweaver document contained instructions on writing HTML and you wanted the code to appear as text in the Document.
To copy and paste as HTML source code:
1 | Select and copy the code from another application. |
2 | Place the insertion point in the Design view, and choose Edit > Paste as HTML. |
You can also select an item in the Design view, for example, a table, and choose Edit > Copy as HTML. You can then paste this in another application as HTML source code. For more information on editing HTML source code, see Writing and editing code.