1.1 The Document Window and ViewsWeb pages are composed in the Dreamweaver Document window, which can be viewed in several modes:
Figure 1-1. Code and Design viewYou can switch view modes using the View Switch Views command, Ctrl+Tab (Windows), or Opt+Tab (Macintosh). While in Code and Design view, the Switch Views command moves the cursor into the other pane; otherwise, it toggles between Code view and Design view. Text can be typed directly into the Design pane. Dreamweaver automatically creates the necessary HTML when you insert objects using, say, the Objects panel. Edits performed in the Design pane are reflected immediately in the Code pane. You can hand-edit the HTML code directly in the Code pane, but the visible results, if any, won't appear in the Design pane until it is refreshed. The Design pane refreshes automatically when switching from Code view to Design view, but not when switching from Code view to Code and Design view.
You can configure the following Code pane options under View Code View Options:
While in Code view, some menu options that are ordinarily available in Design view are inactive. You can use some menu options, such as those under the Insert menu in Code view. Use caution, however, because they'll insert HTML wherever your cursor is, which may put the HTML in an invalid place, such as outside the <html> tags. Code view is convenient for viewing and editing other types of non-HTML documents, such as JavaScript (.js) files. Each document window has its own Code view, so you can use Code view for one page while using Design view for another page. The older Code Inspector, opened using Window Code Inspector (F10), shows the code of the current page. The Code Inspector is a legacy from earlier versions of Dreamweaver and has been superceded by Code view. 1.1.1 ToolbarThe Document window has a convenient Toolbar with icons for commonly used operations. Use View Toolbar, Ctrl+Shift+T (Windows), or Cmd+Shift+T (Mac) to ensure that the Toolbar is visible. The Toolbar, which changes according to the type and contents of your document, lets you switch among view modes and access other common functions as indicated in Figure 1-2. Figure 1-2. Toolbar buttons1.1.2 Status BarThe status bar at the bottom of the Document window, as shown in Figure 1-3, contains the Tag Selector, Window Size pop-up menu, and the Mini-launcher bar. It also shows the current document's size and estimated download time. The status bar can be configured under Edit Preferences Status Bar or by clicking the Edit Sizes option in the Window Size selector as described in Chapter 18. Figure 1-3. The status bar
|