gtksource.snippet
Module for [Snippet] class
Types 3
classSnippet : gobject.object.ObjectWrap
Quick insertion code snippets.
The gtksource.snippet.Snippet represents a series of chunks that can quickly be inserted into the gtksource.view.View.
Snippets are defined in XML files which are loaded by the gtksource.snippet_manager.SnippetManager. Alternatively, applications can create snippets on demand and insert them into the gtksource.view.View using gtksource.view.View.pushSnippet.
Snippet chunks can reference other snippet chunks as well as post-process the values from other chunks such as capitalization.
Methods
SnippetGidBuilder builder() static nothrowGet builder for [gtksource.snippet.Snippet] Returns: New builder objectgtksource.snippet.Snippet newParsed(string text) staticParses the snippet formatted text into a series of chunks and adds them to a new #GtkSourceSnippet.gtksource.snippet.Snippet copy() nothrowDoes a deep copy of the snippet. Returns: A new #GtkSourceSnippetgtksource.snippet_context.SnippetContext getContext() nothrowGets the context used for expanding the snippet. Returns: an #GtkSourceSnippetContextFluent builder implementation template for gtksource.snippet.Snippet
Methods
T description(string propval) nothrowT languageId(string propval) nothrowT name(string propval) nothrowT trigger(string propval) nothrowFluent builder for gtksource.snippet.Snippet