GtkSource.Snippet.new_parsed
Description: Reference for GtkSource.Snippet.new_parsed

### Constructor

# GtkSource Snippetnew_parsed

#### Declaration [src]

    GtkSourceSnippet*
    gtk_source_snippet_new_parsed (
      const char* text,
      GError** error
    )

#### Description [src]

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

Available since: | 5.6

#### Parameters

`text` | `const char*`
| The formatted snippet text to parse.
| The data is owned by the caller of the function.
| The value is a NUL terminated UTF-8 string.
`error` | `GError **`
| The return location for a `GError*`, or `NULL`.

#### Return value

Returns: | `GtkSourceSnippet`
| The newly parsed `GtkSourceSnippet`, or `NULL` upon failure and `error` is set.
| The caller of the function takes ownership of the data, and is responsible for freeing it.