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:

Snippet icon

Object type code:

snp

Main Development Object?

No

Part of:

Snippet Library

Contains:

Property

Generalization:

Development Object

Specializations:

Compilation Output:

URI format:

libsnp:LibraryName/snp:Snippet.Syntax

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

Snippet Properties

Property Name

Description

Name

Name of the snippet

Syntax

Coding language; one of: procscript, html, or UserDefined (such as js, css, or txt).

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.