Opening files in Code view by default

Opening 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.

To set the default view for non-HTML files:

  1. Select Edit > Preferences (Windows) or Dreamweaver > Preferences (Macintosh).
  2. Select File Types/Editors from the Category list on the left.

    The File Types/Editors preferences appear.

  3. In the Open in Code View text 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.

Related topics

  • Setting the File Types/Editors preference options

Getting Started with Dreamweaver
Dreamweaver Basics
Working with Dreamweaver Sites
Laying Out Pages
Adding Content to Pages
Working with Page Code
Setting Up Your Coding Environment
Preparing to Build Dynamic Sites
Making Pages Dynamic
Developing Applications Rapidly