Operation Manual

282
USING DREAMWEAVER
Working with page code
Last updated 3/28/2012
To use the Coding toolbar along the left side of the window, see “Insert code with the Coding toolbar” on page 291.
Customizing keyboard shortcuts
You can use your favorite keyboard shortcuts in Dreamweaver. If you’re accustomed to using specific keyboard
shortcuts—for example, Shift+Enter to add a line break, or Control+G to go to a specific position in the code—you
can add them to Dreamweaver using the Keyboard Shortcut Editor.
For instructions, see “Customize keyboard shortcuts” on page 31.
More Help topics
Work with code snippets” on page 299
Open files in Code view by default
When you open a file type that normally doesn’t contain any HTML (for example, a JavaScript file), the file opens in
Code view (or Code inspector) instead of Design view. You can specify which file types open in Code view.
1 Select Edit > Preferences (Windows) or Dreamweaver > Preferences (Macintosh).
2 Select File Types/Editors from the Category list on the left.
3
In the Open In Code View box, add the filename extension of the file type you want to open automatically in Code view.
Type a space between filename extensions. You can add as many extensions as you like.
More Help topics
Use an external editor” on page 286
Set Validator preferences” on page 308
Setting coding preferences
About coding preferences
You can set coding preferences such as code formatting and coloring, among others, to meet your specific needs.
Note: To set advanced preferences, use the Tag Library editor (see Managing tag libraries” on page 323).
Set the code appearance
You can set word wrapping, display line numbers for the code, highlight invalid code, set syntax coloring for code
elements, set indenting, and show hidden characters from the View
> Code View Options menu.
1 View a document in Code view or the Code inspector.
2 Do one of the following:
Select View > Code View Options
Click the View Options button in the toolbar at the top of Code view or the Code inspector.