
223
Accessing the Code Directly
6
Style
■■
—Enter the class attribute in almost any tag, and you see a complete list of available
CSS styles defined for the current page. Other CSS controls, such as Edit Style Sheet and
Attach Style Sheet, are also available.
File
■■
—Should an attribute require a filename, Dreamweaver opens the standard Select File
dialog box to enable you to easily locate a file or choose a data source.
Code Hints aren’t just for entering new tags; you can take advantage of their prompting when modi-
fying existing code as well. To add an attribute, place your cursor just before the closing bracket and
press the spacebar to trigger the Code Hints pop-up menu. To change an entered value, delete both
the value and the surrounding quotes; the pop-up options appear after the opening quote is entered.
Modifying blocks of code
When it comes to coding, mindless repetition is one big time-killer. Quite often, you repeat the same
function—like converting all the tags to lowercase—for a section of your code. These types of pro-
cedures quickly become tedious, and performing them one at a time is grossly inefficient. For com-
monly performed operations, Dreamweaver has a far better way.
The Selection menu is activated in Dreamweaver’s shortcut menu whenever a section of code is high-
lighted. Twenty-seven varied, but extremely useful, functions are available, as shown in Figure 6