Home > Articles > Graphics & Web Design > Dreamweaver & Flash

This chapter is from the book

This chapter is from the book

Setting Code Format Preferences

You can use the Code Format section of the Preferences dialog box to change the way your code looks in Code view. The options you set in the Code Format section, except the Override Case Of option, are automatically applied only to new documents or additions to documents you create in the future. If you want to reformat an existing document, you can use the Apply Source Formatting on the Commands menu.

Set Code Format Preferences

  • green-circle-1.jpg Click the Dreamweaver (Mac) or Edit (Win) menu, and then click Preferences.
  • green-circle-2.jpg Click the Code Format category.
  • green-circle-3.jpg Select from the following options:
    • Indent. Select to have Dreamweaver indent generated code, and then specify how many spaces or tabs to indent.

    • Tab Size. Specify how many spaces for a tab character.

    • Line Break Type. Select the type of remote hosting server (Windows, Macintosh, or UNIX).

    • Default Tag Case and Default Attribute Case. Select <lowercase> or <uppercase>.

    • Override Case Of: Tags and Attributes. Select whether to override your case settings.

    • TD Tag: Do Not Include A Break Inside The TD Tag. Select to prevent problems with white space and line breaks on older browsers.

    • Advanced Formatting. Click to set formatting options for CSS code and individual tags and attributes in the Tag Library Editor.

  • green-circle-4.jpg Click OK.

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.