Web Design HTML Editor

Storing Commonly Used Code As Snippets

If you have a set of commonly used code that you like to use over multiple documents such as a special script that you like to use, or a navigation bar, WebDesign allows you to store such code as a snippet which can be accessed whenever you need to use it without having to copy and paste from multiple documents or re-write code over and over again.

To store a snippet, open the Snippets window from under the window menu. The Snippet window, shown below, allows you to create a new Snippet by pressing the '+' button. You can give it a name then enter the text in the text field that you would like the snippet to enter when you press the 'Insert' button or double click the snippet from the left list.

WebDesign Snippets Window for Storing Code

Store commonly used code in WebDesign's Snippets window.

WebDesign's Snippets window also supports drag and drop. You can drag text from WebDesign's editor and drop it into the Snippets window to create a new snippet of that text. Notice the 'New With Selection' tool bar button which will create a new snippet based on the selected text in your document.

WebDesign also contains a handy 'Save As Snippet' contextual menu which appears whenever you select some text and control-click in WebDesign's editor.

Save Selected Text as a Snippet

Select some text in your document then control-click to see the 'Save As Snippet' option. This will add a new snippet to your snippets window of the selected text so you can use the snippet in the future.

Previous | Top | Next


Have Any Questions? Post them on our FREE discussion forum at http://www.ragesw.com/forums/
Copyright 1999-2005 Rage Software. All rights reserved world wide
Back to Index | More About WebDesign | FREE WebDesign Add-ons

Designed With WebDesign