set_constant


Description:

public void set_constant (string key, string value)

Sets a constatnt within the context.

This is similar to a variable set with [method@SnippetContext.set_variable] but is expected to not change during use of the snippet.

Examples would be the date or users name.

Parameters:

this

a SnippetContext

key

the constant name

value

the value of the constant