SnippetManager.getSnippet

Queries the known snippets for the first matching group, language_id, and/or trigger.

If group or language_id are null, they will be ignored.

class SnippetManager
getSnippet
(
string group
,
string languageId
,
string trigger
)

Parameters

group string

a group name or null

languageId string

a #GtkSourceLanguage:id or null

trigger string

the trigger for the snippet

Return Value

Type: gtksource.snippet.Snippet

a #GtkSourceSnippet or null if no matching snippet was found.