How to Share Dreamweaver CS5 Snippets

Adobe Dreamweaver allows you to store your own snippets of frequently used code so you can drop them straight into pages as required. Two formats of snippets are available: single blocks of code that you can drop straight into a page at a selected point, and two blocks that Dreamweaver inserts before and after your selected code, to wrap the selection. Snippets are stored in files in Dreamweaver's configuration directories, allowing you to share snippets with friends or colleagues.

Instructions

    • 1

      Launch Dreamweaver from the Windows Start menu. Open the page containing the code you want to turn into a snippet, or create a new page and type the snippet code.

    • 2

      Click on the "Snippets" tab from the Dreamweaver panels, or press "Shift" and "F9" if the tab is not visible. Click the folder that will store the snippet. To create a new folder, right-click at the bottom of the list and click "Add New Folder."

    • 3

      Highlight the code that you want to store as a snippet. Right-click on the selected code and click "Create New Snippet."

    • 4

      Type in a name for the snippet, and enter a description of the code's purpose if desired, which is useful for the person receiving the snippet. Click "Insert Block" if the code is in a single block, and Dreamweaver automatically fills in the Insert Code window with the selected code. Alternatively, click "Wrap Selection" and enter the snippet code, which Dreamweaver will insert before and after the selected block when you apply the snippet. Click the "OK" button to store the new snippet.

    • 5

      Right-click on the Windows Start menu, and then click on "Open Windows Explorer." In Windows Explorer, navigate to the snippets folder for your user profile, which is at the following location:

      C:\Users\username\AppData\Roaming\Adobe\Dreamweaver CS5\en_US\Configuration\Snippets

    • 6

      Copy the snippet file, which has a .csn extension, from the folder where you stored it. You can then email the snippet file to the recipient, or copy it to a USB drive or similar. Snippet files are typically small, so you can send them as email attachments. The recipient can then copy the snippet to her snippets folder, and it is available the next time she starts Dreamweaver.

Tips & Warnings

  • You can share snippet files between all of the Dreamweaver CS versions.

Related Searches:

References

Resources

Comments

Related Ads

Featured