blob: 7f85c95b4e00e5d5a1d5eb3651ce6ba627820eeb [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!--Arbortext, Inc., 1988-2005, v.4002-->
<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN"
<concept id="csrcedt001" xml:lang="en-us">
<title>Snippets view</title>
<shortdesc>The Snippets view lets you catalog and organize reusable programming
objects, such as HTML tagging, <tm tmclass="special" tmowner="Sun Microsystems, Inc."
tmtype="tm" trademark="JavaScript">JavaScript</tm>, and JSP code, along with
files and custom JSP tags.</shortdesc>
<keywords><indexterm>Snippets view<indexterm>overview</indexterm></indexterm>
<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>
<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>
<linkpool type="concept">
<link href="csrcedt004.dita"><linktext>Structured text editors for markup
<linkpool type="task">
<link href="tsrcedt026.dita"><linktext>Editing with snippets - overview</linktext>
<link href="tsrcedt014.dita"><linktext>Adding snippets drawers</linktext>
<link href="tsrcedt015.dita"><linktext>Adding items to snippets drawers</linktext>
<link href="tsrcedt022.dita"><linktext>Editing snippet items</linktext></link>
<link href="tsrcedt016.dita"><linktext>Deleting or hiding snippet items or
<link href="tsrcedt000.dita"></link>