SnippetChunk.setSpec

void setSpec(string spec)

Sets the specification for the chunk.

The specification is evaluated for variables when other chunks are edited within the snippet context. If the user has changed the text, the gtksource.snippet_chunk.SnippetChunk.text gtksource.snippet_chunk.SnippetChunk.textSet properties are updated.

Parameters

specthe new specification for the chunk