blob: 7f85c95b4e00e5d5a1d5eb3651ce6ba627820eeb [file] [log] [blame]
kprice159fa582006-05-08 21:30:45 +00001<?xml version="1.0" encoding="utf-8"?>
2<!--Arbortext, Inc., 1988-2005, v.4002-->
3<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN"
4 "..\dtd\concept.dtd">
5<concept id="csrcedt001" xml:lang="en-us">
6<title>Snippets view</title>
7<shortdesc>The Snippets view lets you catalog and organize reusable programming
8objects, such as HTML tagging, <tm tmclass="special" tmowner="Sun Microsystems, Inc."
9tmtype="tm" trademark="JavaScript">JavaScript</tm>, and JSP code, along with
10files and custom JSP tags.</shortdesc>
11<prolog><metadata>
12<keywords><indexterm>Snippets view<indexterm>overview</indexterm></indexterm>
13
14</keywords>
15</metadata></prolog>
16<conbody>
17<p> The Snippets view can be extended based on additional objects that you
18define and include. To view or collapse the objects in a specific drawer,
19click the drawer name.</p>
20<p>The Snippets view has the following features: <ul>
21<li>Drag-and-drop to various source editing pages: You can drag items from
22the view into the active editor and the text will be dropped into the document
23at the cursor location </li>
24<li>Double-click support: You can double-click on an item and have it inserted
25at the current cursor position in the active editor </li>
26<li>User-defined drawers and items: You can define, edit, and remove items
27from view drawers as desired.</li>
28<li>Plug-in-defined drawers and items: Plug-in developers can contribute a
29default list of items to their own drawers.</li>
30<li>Variables in insertions: By default, items will be edited using a dialog
31and, when inserted, you will be prompted for values for each of the variables.</li>
32<li>Customization: You can select which drawers and items are shown in the
33Snippets view.</li>
34<li>Custom insertion: Plug-in developers can customize the behavior of items
35so that when they are dropped during a drag-and-drop action, both the text
36that is inserted and the insertion location are strictly defined.</li>
37</ul></p>
38</conbody>
39<related-links>
40<linkpool type="concept">
41<link href="csrcedt004.dita"><linktext>Structured text editors for markup
42languages</linktext></link>
43</linkpool>
44<linkpool type="task">
45<link href="tsrcedt026.dita"><linktext>Editing with snippets - overview</linktext>
46</link>
47<link href="tsrcedt014.dita"><linktext>Adding snippets drawers</linktext>
48</link>
49<link href="tsrcedt015.dita"><linktext>Adding items to snippets drawers</linktext>
50</link>
51<link href="tsrcedt022.dita"><linktext>Editing snippet items</linktext></link>
52<link href="tsrcedt016.dita"><linktext>Deleting or hiding snippet items or
53drawers</linktext></link>
54<link href="tsrcedt000.dita"></link>
55</linkpool>
56</related-links>
57</concept>