Top | ![]() |
![]() |
![]() |
![]() |
gchar * | gtk_source_language_get_name () |
gchar * | gtk_source_language_get_section () |
GSList * | gtk_source_language_get_tags () |
gunichar | gtk_source_language_get_escape_char () |
GSList * | gtk_source_language_get_mime_types () |
void | gtk_source_language_set_mime_types () |
GtkSourceStyleScheme * | gtk_source_language_get_style_scheme () |
void | gtk_source_language_set_style_scheme () |
GtkSourceTagStyle * | gtk_source_language_get_tag_style () |
void | gtk_source_language_set_tag_style () |
GtkSourceTagStyle * | gtk_source_language_get_tag_default_style () |
gchar *
gtk_source_language_get_name (GtkSourceLanguage *language
);
Returns the localized name of the language.
gchar *
gtk_source_language_get_section (GtkSourceLanguage *language
);
Returns the localized section of the language. Each language belong to a section (ex. HTML belogs to the Markup section).
GSList *
gtk_source_language_get_tags (GtkSourceLanguage *language
);
Returns a list of tags for the given language
. You should unref the tags
and free the list after usage.
gunichar
gtk_source_language_get_escape_char (GtkSourceLanguage *language
);
Gets the value of the ESC character in the given language
.
GSList *
gtk_source_language_get_mime_types (GtkSourceLanguage *language
);
Returns a list of mime types for the given language
. After usage you should
free each element of the list as well as the list itself.
void gtk_source_language_set_mime_types (GtkSourceLanguage *language
,const GSList *mime_types
);
Sets a list of mime_types
for the given language
.
If mime_types
is NULL
this function will use the default mime
types from the language file.
GtkSourceStyleScheme *
gtk_source_language_get_style_scheme (GtkSourceLanguage *language
);
Gets the style scheme associated with the given language
.
void gtk_source_language_set_style_scheme (GtkSourceLanguage *language
,GtkSourceStyleScheme *scheme
);
Sets the style scheme of the given language
.
GtkSourceTagStyle * gtk_source_language_get_tag_style (GtkSourceLanguage *language
,const gchar *tag_id
);
Gets the style of the tag whose ID is tag_id
. If the style is
not defined then returns the default style.
void gtk_source_language_set_tag_style (GtkSourceLanguage *language
,const gchar *tag_id
,const GtkSourceTagStyle *style
);
Sets the style
of the tag whose ID is tag_id
. If style
is NULL
restore the default style.
GtkSourceTagStyle * gtk_source_language_get_tag_default_style (GtkSourceLanguage *language
,const gchar *tag_id
);
Gets the default style of the tag whose ID is tag_id
.
“tag-style-changed”
signalvoid user_function (GtkSourceLanguage *sourcelanguage, gchar *arg1, gpointer user_data)
sourcelanguage |
the object which received the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last