INTERACTIVEPROOFING.COM

bat proof mailbox - www.interactiveproofing.com

Menu


adds a line break after the opening <td> tag and then again after the literal text. Centering: Specifies whether centering in your


web pages is handled using <div align="center"> or <center>. Both of these options are deprecated as of the HTML 4.01 specification and should be replaced with CSS styles whenever possible. Also notice the option for opening the Tag Library Editor. As you will see later in the chapter, selecting this option opens the Tag Library Editor, which lets you set the formatting of individual tags as opposed to the global settings you specify in the Preferences window. The Code Hints Category You can set options in the Code Hints category of the Preferences window to customize how Dreamweaver helps you along in the coding environment. Shown in Figure 5.6, the Code Hints category allows you to enable or disable automatic tag completion as well as the delay in milliseconds that it will take for the code hints drop-down menu to appear as you write code in Code view. Figure 5.6. Set preferences in this category to customize how Dreamweaver works with tag completion and code hints. [View full size image]   A complete list of customizable functionality is provided here: Close tags: Choose one of the options in this radio group to set how Dreamweaver will automatically close tags for you as you type. For instance, selecting the first radio button (After Typing "</") guarantees that if you type the <td> tag, the closing tag won't automatically appear until I type the </. Selecting the second radio button (After Typing the Open Tag's ">") guarantees that if you type the <td> tag, the closing tag automatically appears as soon as you close the opening tag with the > symbol. Selecting the Never option guarantees that Dreamweaver never automatically closes tags. Options: Enable code hints: As discussed in Chapter 3, the code hints menu is a collection of tags, attributes, and values for various languages supported in Dreamweaver. This option enables or disables the code hints menu that appears when you write code in Code view. Delay: Choose a time in seconds from this slider to set the delay of the code hints menu. If you prefer the code hints menu to appear instantly, set the slider to 0; if you prefer a longer delay, move the slider to the right. Menus: Choose from the check boxes in this list to set which type of code hints you want displayed while typing. You can enable a few of these options or all of them. The Code Rewriting Category As you can see, each code category in the Preferences window allows you customize the look, formatting, and interaction of code you add while in Code view. The Code Rewriting category, shown in Figure 5.7 is no different. Use this category to customize how Dreamweaver rewrites code of a certain type, encodes special characters, encodes URLs, and so on. Figure 5.7. Use the Code Rewriting category to customize how Dreamweaver should handle the rewriting of code of a certain type, how it should encode URLs, and how it should encode special characters. [View full size image]   A complete list of the functionality in the Code Rewriting category is provided here: Fix invalidly nested and unclosed tags: Choose this option to rewrite tags that are invalidly nested or invalidly unclosed. For instance, the code <strong><em>Hello World</strong></em> is rewritten as <strong><em>Hello World</em></strong>.