gtksource.language

Module for [Language] class

Types 3

Methods
GType _gType() @property
Language self()Returns `this`, for use in `with` statements.
LanguageGidBuilder builder()Get builder for [gtksource.language.Language] Returns: New builder object
bool hidden() @property
string id() @property
string name() @property
string section() @property
string[] getGlobs()Returns the globs associated to this language. This is just an utility wrapper around [gtksource.language.Language.getMetadata] to retrieve the "globs" metadata property and split it into an array....
bool getHidden()Returns whether the language should be hidden from the user. Returns: true if the language should be hidden, false otherwise.
string getId()Returns the ID of the language. The ID is not locale-dependent. The returned string is owned by language and should not be freed or modified. Returns: the ID of language.
string getMetadata(string name)
string[] getMimeTypes()Returns the mime types associated to this language. This is just an utility wrapper around [gtksource.language.Language.getMetadata] to retrieve the "mimetypes" metadata property and split it into ...
string getName()Returns the localized name of the language. The returned string is owned by language and should not be freed or modified. Returns: the name of language.
string getSection()Returns the localized section of the language. Each language belong to a section (ex. HTML belogs to the Markup section). The returned string is owned by language and should not be freed or modifie...
string getStyleFallback(string styleId)Returns the ID of the style to use if the specified style_id is not present in the current style scheme.
string[] getStyleIds()Returns the ids of the styles defined by this language. Returns: a newly-allocated null terminated array containing ids of the styles defined by this language or null if no style is defined. The re...
string getStyleName(string styleId)Returns the name of the style with ID style_id defined by this language.
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder for [gtksource.language.Language]

Methods