Operation Manual

281
USING DREAMWEAVER
Working with page code
Last updated 3/28/2012
More Help topics
Manage windows and panels” on page 21
Save and switch workspaces” on page 25
Customize keyboard shortcuts” on page 31
Managing tag libraries” on page 323
Viewing code
You can view the source code for the current document in several ways: you can display it in the Document window
by enabling Code view, you can split the Document window to display both the page and its associated code, or you
can work in the Code inspector, a separate coding window. The Code inspector works just like Code view; you can
think of it as a detachable Code view for the current document.
More Help topics
Change the code format” on page 283
Set code hints preferences” on page 289
Set the code colors” on page 285
View code in the Document window
Select View > Code.
Code and edit a page simultaneously in the Document window
1 Select View > Code and Design.
The code appears in the top pane and the page appears in the bottom pane.
2 To display the page on top, select Design View On Top from the View Options menu on the Document toolbar.
3 To adjust the size of the panes in the Document window, drag the splitter bar to the desired position. The splitter
bar is located between the two panes.
Code view is updated automatically when you make changes in Design view. However, after making changes in Code
view, you must manually update the document in Design view by clicking in Design view or pressing F5.
View code in a separate window with the Code inspector
The Code inspector lets you work in a separate coding window, just like working in Code view.
Select Window > Code Inspector. The toolbar includes the following options:
File Management Puts or gets the file.
Preview/Debug In Browser Previews or debugs your document in a browser.
Refresh Design View Updates the document in Design view so that it reflects any changes you made in the code.
Changes you make in the code don’t automatically appear in Design view until you perform certain actions, such as
saving the file or clicking this button.
Reference Opens the Reference panel. See “Use language-reference material” on page 301.
Code Navigation Lets you move quickly in the code. See “Go to a JavaScript or VBScript function” on page 297.
View Options Lets you determine how the code is displayed. See “Set the code appearance” on page 282.