Class
GtkSourceLanguage
Description
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
.