Snippets are a powerful new addition to the Dreamweaver toolset. They make it easy to save blocks of code that you use often or put the same conversion on a block already written on your page.
Difficulty: Average
Time Required: 5 minutes
Here's How:
- Open Dreamweaver MX and in the Window menu, choose snippets. Or you can hold down the shift key and press F9 (Shift-F9). Dreamweaver comes pre-installed with a number of useful snippets.
- Highlight the text or code you wish to turn into a snippet.
- Click on the New Snippet icon below the snippets window. It looks like a file with a plus sign.
- Give your snippet a title.
- Give your snippet a description.
- If the snippet is to wrap around text on the page, choose "Wrap selection", or if you want a single block, choose "Insert Block".
- Add the code for the snippet, if you did not have any code highlighted.
- Choose how you want the preview in the snippet pane to display - as code or design.
- Click OK.
Tips:
- Be sure to check out the pre-installed snippets. There may be one or two there that would help you manage your site.
What You Need:
- Macromedia Dreamweaver MX

