blob: a37e9dee9c0d15fe6c8c6ab24c2a965e82b4f376 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta name="copyright" content="Copyright (c) 2000, 2006 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html. Contributors: IBM Corporation - initial API and implementation" />
<meta name="DC.rights.owner" content="(C) Copyright 2000, 2006" />
<meta content="public" name="security" />
<meta content="index,follow" name="Robots" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta content="concept" name="DC.Type" />
<meta name="DC.Title" content="Snippets view" />
<meta name="abstract" content="The Snippets view lets you catalog and organize reusable programming objects, such as HTML tagging, JavaScript, and JSP code, along with files and custom JSP tags." />
<meta name="description" content="The Snippets view lets you catalog and organize reusable programming objects, such as HTML tagging, JavaScript, and JSP code, along with files and custom JSP tags." />
<meta content="Snippets view, overview" name="DC.subject" />
<meta content="Snippets view, overview" name="keywords" />
<meta scheme="URI" name="DC.Relation" content="csrcedt004.html" />
<meta scheme="URI" name="DC.Relation" content="tsrcedt026.html" />
<meta scheme="URI" name="DC.Relation" content="tsrcedt014.html" />
<meta scheme="URI" name="DC.Relation" content="tsrcedt015.html" />
<meta scheme="URI" name="DC.Relation" content="tsrcedt022.html" />
<meta scheme="URI" name="DC.Relation" content="tsrcedt016.html" />
<meta scheme="URI" name="DC.Relation" content="tsrcedt000.html" />
<meta content="XHTML" name="DC.Format" />
<meta content="csrcedt001" name="DC.Identifier" />
<meta content="en-us" name="DC.Language" />
<link href="../../org.eclipse.wst.doc.user/common.css" type="text/css" rel="stylesheet" />
<title>Snippets view</title>
</head>
<body id="csrcedt001"><a name="csrcedt001"><!-- --></a>
<h1 class="topictitle1">Snippets view</h1>
<div><p>The Snippets view lets you catalog and organize reusable programming
objects, such as HTML tagging, JavaScriptâ„¢, and JSP code, along with
files and custom JSP tags.</p>
<p> The Snippets view can be extended based on additional objects that you
define and include. To view or collapse the objects in a specific drawer,
click the drawer name.</p>
<div class="p">The Snippets view has the following features: <ul>
<li>Drag-and-drop to various source editing pages: You can drag items from
the view into the active editor and the text will be dropped into the document
at the cursor location </li>
<li>Double-click support: You can double-click on an item and have it inserted
at the current cursor position in the active editor </li>
<li>User-defined drawers and items: You can define, edit, and remove items
from view drawers as desired.</li>
<li>Plug-in-defined drawers and items: Plug-in developers can contribute a
default list of items to their own drawers.</li>
<li>Variables in insertions: By default, items will be edited using a dialog
and, when inserted, you will be prompted for values for each of the variables.</li>
<li>Customization: You can select which drawers and items are shown in the
Snippets view.</li>
<li>Custom insertion: Plug-in developers can customize the behavior of items
so that when they are dropped during a drag-and-drop action, both the text
that is inserted and the insertion location are strictly defined.</li>
</ul>
</div>
</div>
<div><div class="relconcepts"><strong>Related concepts</strong><br />
<div><a href="csrcedt004.html" title="Structured text editor is any of several text editors that you can use to edit various markup languages such as HTML, JavaScript, or XML.">Structured text editors for markup
languages</a></div>
</div>
<div class="reltasks"><strong>Related tasks</strong><br />
<div><a href="tsrcedt026.html" title="The Snippets view lets you catalog and organize reusable programming objects, such as HTML tagging, JavaScript, and JSP code, along with files and custom JSP tags. The view can be extended based on additional objects that you define and include.">Editing with snippets - overview</a></div>
<div><a href="tsrcedt014.html" title="This documentation explains how to customize the Snippets view by adding a new drawer.">Adding snippets drawers</a></div>
<div><a href="tsrcedt015.html" title="">Adding items to snippets drawers</a></div>
<div><a href="tsrcedt022.html" title="">Editing snippet items</a></div>
<div><a href="tsrcedt016.html" title="This documentation describes how to delete or hide drawers and items in the Snippets view.">Deleting or hiding snippet items or
drawers</a></div>
<div><a href="tsrcedt000.html" title="You can edit text coded in markup languages with a structured text editor. This is a generic term for several editors that you can use to edit any of several markup languages, such as HTML.">Editing text coded in markup languages - overview</a></div>
</div>
</div>
</body>
</html>