## GtkSourceTag

GtkSourceTag —

## Synopsis

    #include <gtksourceview/gtksourcetag.h>

    struct      GtkSourceTag;
    struct      GtkSourceTagClass;
    struct      GtkSyntaxTag;
    struct      GtkSyntaxTagClass;
    struct      GtkPatternTag;
    struct      GtkPatternTagClass;
    GtkSourceTagStyle* gtk_source_tag_get_style (GtkSourceTag *tag);
    void        gtk_source_tag_set_style        (GtkSourceTag *tag,
                                                 const GtkSourceTagStyle *style);
    GtkTextTag* gtk_syntax_tag_new              (const gchar *id,
                                                 const gchar *name,
                                                 const gchar *pattern_start,
                                                 const gchar *pattern_end);
    GtkTextTag* gtk_pattern_tag_new             (const gchar *id,
                                                 const gchar *name,
                                                 const gchar *pattern);
    GtkTextTag* gtk_keyword_list_tag_new        (const gchar *id,
                                                 const gchar *name,
                                                 const GSList *keywords,
                                                 gboolean case_sensitive,
                                                 gboolean match_empty_string_at_beginning,
                                                 gboolean match_empty_string_at_end,
                                                 const gchar *beginning_regex,
                                                 const gchar *end_regex);
    #define     gtk_block_comment_tag_new
    GtkTextTag* gtk_line_comment_tag_new        (const gchar *id,
                                                 const gchar *name,
                                                 const gchar *pattern_start);
    GtkTextTag* gtk_string_tag_new              (const gchar *id,
                                                 const gchar *name,
                                                 const gchar *pattern_start,
                                                 const gchar *pattern_end,
                                                 gboolean end_at_line_end);

## Object Hierarchy

      GObject
       +----GtkTextTag
             +----GtkSourceTag
                   +----GtkSyntaxTag
                   +----GtkPatternTag

      GObject
       +----GtkTextTag
             +----GtkSourceTag
                   +----GtkSyntaxTag

      GObject
       +----GtkTextTag
             +----GtkSourceTag
                   +----GtkPatternTag

## Properties

      "id"                   gchararray           : Read / Write / Construct Only
      "tag-style"            GtkSourceTagStyle    : Read / Write

## Description

## Details

### struct GtkSourceTag

    struct GtkSourceTag;

### struct GtkSourceTagClass

    struct GtkSourceTagClass;

### struct GtkSyntaxTag

    struct GtkSyntaxTag;

### struct GtkSyntaxTagClass

    struct GtkSyntaxTagClass;

### struct GtkPatternTag

    struct GtkPatternTag;

### struct GtkPatternTagClass

    struct GtkPatternTagClass;

### gtk_source_tag_get_style ()

    GtkSourceTagStyle* gtk_source_tag_get_style (GtkSourceTag *tag);

`tag` : |
Returns : |

### gtk_source_tag_set_style ()

    void        gtk_source_tag_set_style        (GtkSourceTag *tag,
                                                 const GtkSourceTagStyle *style);

`tag` : |
`style` : |

### gtk_syntax_tag_new ()

    GtkTextTag* gtk_syntax_tag_new              (const gchar *id,
                                                 const gchar *name,
                                                 const gchar *pattern_start,
                                                 const gchar *pattern_end);

`id` : |
`name` : |
`pattern_start` : |
`pattern_end` : |
Returns : |

### gtk_pattern_tag_new ()

    GtkTextTag* gtk_pattern_tag_new             (const gchar *id,
                                                 const gchar *name,
                                                 const gchar *pattern);

`id` : |
`name` : |
`pattern` : |
Returns : |

### gtk_keyword_list_tag_new ()

    GtkTextTag* gtk_keyword_list_tag_new        (const gchar *id,
                                                 const gchar *name,
                                                 const GSList *keywords,
                                                 gboolean case_sensitive,
                                                 gboolean match_empty_string_at_beginning,
                                                 gboolean match_empty_string_at_end,
                                                 const gchar *beginning_regex,
                                                 const gchar *end_regex);

`id` : |
`name` : |
`keywords` : |
`case_sensitive` : |
`match_empty_string_at_beginning` : |
`match_empty_string_at_end` : |
`beginning_regex` : |
`end_regex` : |
Returns : |

### gtk_block_comment_tag_new

    #define gtk_block_comment_tag_new	gtk_syntax_tag_new

### gtk_line_comment_tag_new ()

    GtkTextTag* gtk_line_comment_tag_new        (const gchar *id,
                                                 const gchar *name,
                                                 const gchar *pattern_start);

`id` : |
`name` : |
`pattern_start` : |
Returns : |

### gtk_string_tag_new ()

    GtkTextTag* gtk_string_tag_new              (const gchar *id,
                                                 const gchar *name,
                                                 const gchar *pattern_start,
                                                 const gchar *pattern_end,
                                                 gboolean end_at_line_end);

`id` : |
`name` : |
`pattern_start` : |
`pattern_end` : |
`end_at_line_end` : |
Returns : |

## Properties

"`id`" (gchararray : Read / Write / Construct Only) | ID used to refer to the source tag.
"`tag-style`" (GtkSourceTagStyle : Read / Write) | The style associated to the source tag.