• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 27. Writing Code in Dreamweaver > Using Dreamweaver as a Text Editor

Using Dreamweaver as a Text Editor

The power of Dreamweaver has always been its close integration between visual and text-based editing. The program’s built-in text editor, accessible through the Document window’s Code view, or the Code portion of Code and Design view, or the separate Code Inspector panel, offers many features generally found only in dedicated text-editing programs. These include line numbers, word wrap control, syntax-based color coding, complex text searches using regular expressions, and several features adopted from HomeSite, such as code hints and tag completion. In addition, because the Dreamweaver text editor also is responsible for writing the code created when you work in Design view, it includes built-in source formatting and error-correction functions.

Accessing the Text Editor

You can access the Dreamweaver text editor from the main Document window by choosing Code view or Code and Design view. (For a full discussion of the Document window, see Chapter 2, “The Dreamweaver Workspace.”) Alternatively, you can open the text editor in its own tabbed panel window by accessing the Code Inspector (choose Window > Code Inspector). All text-editing features work the same in both Code view and the Code Inspector. If you’re short on screen space, you’ll probably want to use Code view (or Code and Design view) in the Document window. If you have a dual monitor setup at your workstation, you might prefer to display the Document window, set to Design view, on one monitor and the Code Inspector, along with any other open panels, on the other monitor. Figure 27.1 shows Code view and the Code Inspector, side-by-side for comparison.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint