SnippetContext.setConstant

void setConstant(string key, string value)

Sets a constatnt within the context.

This is similar to a variable set with [gtksource.snippet_context.SnippetContext.setVariable] but is expected to not change during use of the snippet.

Examples would be the date or users name.

Parameters

keythe constant name
valuethe value of the constant