SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 415 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"


Code snippets that include deprecated tags (like ) or outdated JavaScript routines have
been relocated to the ~Legacy snippet folder in Dreamweaver CS3.
By default, the Snippets panel is found under the Code panel group; to open it directly, choose Window ???
Snippets or use the keyboard shortcut Shift+F9. The Snippets panel, shown in Figure 6-20, shows a preview
of the selected snippet. If the snippet itself is not rendered onscreen, like a JavaScript function, the
preview shows the code itself; otherwise, you see exactly what the code looks like on the page, minus any
CSS stylings. Rearrange your snippets by dragging them within the panel, from folder to folder, if you like.
FIGURE 6-20
Use the handy Snippets panel to quickly reuse portions of your code.
To insert a snippet, follow these steps:
1. Display the Snippets panel if it??™s not already open by choosing Window ??? Snippets.
2. Find the desired snippet by expanding the folder and, if necessary, subfolders.
3. To insert a snippet as a block of code:
a. Position the cursor where you??™d like the code to appear.
b. Double-click the snippet (or snippet icon) or select the snippet and click Insert.
Alternatively, you can drag the snippet into position in either Code view or Design view.


Pages:
403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427