Language

open class Language(pointer: <Error class: unknown class><<Error class: unknown class>>)

Represents a syntax highlighted language.

A GtkSourceLanguage represents a programming or markup language, affecting syntax highlighting and ./class.Buffer.html#context-classes.

Use class@LanguageManager to obtain a GtkSourceLanguage instance, and method@Buffer.set_language to apply it to a class@Buffer.

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val gtksourceLanguagePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open val hidden: Boolean
Link copied to clipboard
open val id: String
Link copied to clipboard
open val name: String
Link copied to clipboard
open val section: String

Functions

Link copied to clipboard
open fun getGlobs(): List<String>?

Returns the globs associated to this language.

Link copied to clipboard
open fun getHidden(): Boolean

Returns whether the language should be hidden from the user.

Link copied to clipboard
open fun getId(): String

Returns the ID of the language.

Link copied to clipboard
open fun getMetadata(name: String): String?
Link copied to clipboard
open fun getMimeTypes(): List<String>?

Returns the mime types associated to this language.

Link copied to clipboard
open fun getName(): String

Returns the localized name of the language.

Link copied to clipboard
open fun getSection(): String

Returns the localized section of the language.

Link copied to clipboard
open fun getStyleFallback(styleId: String): String?

Returns the ID of the style to use if the specified @style_id is not present in the current style scheme.

Link copied to clipboard
open fun getStyleIds(): List<String>?

Returns the ids of the styles defined by this @language.

Link copied to clipboard
open fun getStyleName(styleId: String): String?

Returns the name of the style with ID @style_id defined by this @language.