Snippet
A Snippet is a Development Object that defines a fragment of code or text that can be inserted into code.
A Snippet can be any text string, ranging from a single word, to a complete script module. For example, it can be an HTML element or collection of elements, a ProcScript fragment, a style definition, a JavaScript construction, or any other kind of text. For more information, see Snippets.
Characteristics
|
Characteristics |
|
|---|---|
|
Icon: |
|
|
Object type code: |
snp |
|
Main Development Object? |
No |
|
Part of: |
|
|
Contains: |
|
|
Generalization: |
|
|
Specializations: |
— |
|
Compilation Output: |
— |
|
URI format: |
|
Specialization
Snippet specializes Development Object in the following ways:
-
It has an Snippet Library as parent
-
It is used as a resource during development. It has no runtime equivalent.
Properties
|
Property Name |
Description |
|---|---|
|
Name |
Name of the snippet |
|
Syntax |
Coding language; one of:
|
|
Category |
User-defined category that can be used to group snippets. |
|
Text |
Code fragment |
|
Description |
Brief description of the snippet |
|
Documentation |
Longer description of the snippet and its uses. |