Class
GtkSourceLanguage
Description [src]
final class GtkSource.Language : GObject.Object {
/* No available fields */
}
Represents a syntax highlighted language.
A GtkSourceLanguage
represents a programming or markup language, affecting
syntax highlighting and context classes.
Use GtkSourceLanguageManager
to obtain a GtkSourceLanguage
instance, and
gtk_source_buffer_set_language()
to apply it to a GtkSourceBuffer
.
Instance methods
gtk_source_language_get_globs
Returns the globs associated to this language.
gtk_source_language_get_hidden
Returns whether the language should be hidden from the user.
gtk_source_language_get_id
Returns the ID of the language.
gtk_source_language_get_metadata
gtk_source_language_get_mime_types
Returns the mime types associated to this language.
gtk_source_language_get_name
Returns the localized name of the language.
gtk_source_language_get_section
Returns the localized section of the language.
gtk_source_language_get_style_fallback
Returns the ID of the style to use if the specified style_id
is not present in the current style scheme.
gtk_source_language_get_style_ids
Returns the ids of the styles defined by this language
.
gtk_source_language_get_style_name
Returns the name of the style with ID style_id
defined by this language
.
Properties
GtkSource.Language:hidden
GtkSource.Language:id
GtkSource.Language:name
GtkSource.Language:section
Signals
Signals inherited from GObject (1)
GObject.Object::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.