Snippet

constructor(trigger: String? = null, languageId: String? = null)

Creates a new #GtkSourceSnippet

Return

A new #GtkSourceSnippet

Parameters

trigger

the trigger word

languageId

the source language


constructor(text: String)

Parses the snippet formatted @text into a series of chunks and adds them to a new #GtkSourceSnippet.

Return

the newly parsed #GtkSourceSnippet, or null upon failure and @error is set.

Since

5.6

Parameters

text

the formatted snippet text to parse


constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)