Snippets
Snippets are named fragments of code or text that you can insert into your application script or layout to speed development. They are defined as development objects in snippet libraries.
A snippet can be any text string, ranging from a single word, to a complete script module. You can create snippets of commonly-used HTML fragments and element tags, or ProcScript patterns. For example, a snippet could define a conditional processing loop, an HTML table, or a complete ProcScript module. It is also possible to create CSS definitions or JavaScript constructions.
Note: Syntax highlighting is currently available only for HTML and ProcScript.
Snippets are similar to templates in that they are copied into code and used to speed up development when writing ProcScript and defining HTML layouts. Uniface delivers a default set templates and snippet libraries which are loaded when you start the Uniface IDE for the first time. The code in templates and snippets usually contains tips and instructions
To make snippets available for use in the Uniface IDE, the parent snippet library must be defined as a palette. For more information, see Define Palettes and Templates.