Webmorf code snippets

WebMorf code snippetsCode snippets are just small blocks of reusable code which can be inserted into a code file using a context menu command or a combination of hotkeys.

Typically, they contain commonly used blocks of code such as if-else and try-finally code but they can be used to insert entire classes or methods.

Many text editors and source code editors include snippet management features which allow a user to avoid repetitive typing in the course of routine edit operations.  This feature is  useful because the snippet content varies only slightly (or not at all) each time it is entered.

Snippet management features are usually classified according to the scope of interactivity between the snippets and the text editor or application that hosts them.

Snippet feature groups include plain text (or static) snippets, interactive (dynamic) snippets and scriptable snippets.

Static snippets

These consist primarily of fixed text that a user can choose to insert into the current document. The user is not able to specify anything else, except perhaps the cursor position relative to the newly inserted text.  Static snippets are similar to simple macros.

Dynamic snippets

These consist of fixed text combined with dynamic elements. The user may specify both the content of the dynamic elements, as well as their position relative to the fixed text, as part of choosing what to insert into the current document. Examples of dynamic elements could be variables such as the current date or system time, or input from the user that is supplied via a GUI or input from another application.

Scriptable snippets

These consist of runnable segments of code in either a macro language or a scripting language. Scriptable snippets provide the greatest degree of flexibility to a user although this depends somewhat on the programming languages supported by the text editor and whether or not the programming language is well-known.  Scripting support varies but may include features such as running shell commands, providing a GUI dialog or other methods of user interaction with the operating system.

Here at WebMorf, we can write any snippets for you to use.  We can either write them for you to your specifications or we can write them and implement them for you.

Contact us below with any requirements you may have and we will be happy to quote.

 

Your Name (required)

Your Email (required)

Your requirements