gtksource.language

Module for [Language] class

Types 3

Represents a syntax highlighted language.

A gtksource.language.Language represents a programming or markup language, affecting syntax highlighting and context classes.

Use gtksource.language_manager.LanguageManager to obtain a gtksource.language.Language instance, and gtksource.buffer.Buffer.setLanguage to apply it to a gtksource.buffer.Buffer.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
Language self() nothrowReturns `this`, for use in `with` statements.
LanguageGidBuilder builder() static nothrowGet builder for [gtksource.language.Language] Returns: New builder object
bool hidden() @property nothrow
string id() @property nothrow
string name() @property nothrow
string section() @property nothrow
string[] getGlobs() nothrowReturns the globs associated to this language.
bool getHidden() nothrowReturns whether the language should be hidden from the user. Returns: true if the language should be hidden, false otherwise.
string getId() nothrowReturns the ID of the language.
string getMetadata(string name) nothrow
string[] getMimeTypes() nothrowReturns the mime types associated to this language.
string getName() nothrowReturns the localized name of the language.
string getSection() nothrowReturns the localized section of the language.
string getStyleFallback(string styleId) nothrowReturns the ID of the style to use if the specified style_id is not present in the current style scheme.
string[] getStyleIds() nothrowReturns 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) nothrowReturns 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
Language build() nothrowCreate object from builder. Returns: New object