gtksource.language_manager
Module for [LanguageManager] class
Types 3
Methods
LanguageManager self()Returns `this`, for use in `with` statements.LanguageManagerGidBuilder builder()Get builder for [gtksource.language_manager.LanguageManager] Returns: New builder objectgtksource.language_manager.LanguageManager getDefault()Returns the default #GtkSourceLanguageManager instance. Returns: a #GtkSourceLanguageManager. Return value is owned by GtkSourceView library and must not be unref'ed.gtksource.language.Language getLanguage(string id)Gets the #GtkSourceLanguage identified by the given id in the language manager.string[] getLanguageIds()Returns the ids of the available languages. Returns: a null-terminated array of strings containing the ids of the available languages or null if no language is available. The array is sorted alphab...string[] getSearchPath()Gets the list directories where lm looks for language files. Returns: null-terminated array containg a list of language files directories. The array is owned by lm and must not be modified.gtksource.language.Language guessLanguage(string filename = null, string contentType = null)Picks a #GtkSourceLanguage for given file name and content type, according to the information in lang files. Either filename or content_type may be null. This function can be used as follows:void setSearchPath(string[] dirs = null)Sets the list of directories where the lm looks for language files. If dirs is null, the search path is reset to default.Fluent builder for [gtksource.language_manager.LanguageManager]
Methods