LanguageManager
Object Hierarchy:
GtkSource.LanguageManager
GtkSource.LanguageManager
GtkSource.LanguageManager
GLib.Object
GLib.Object
GLib.Object->GtkSource.LanguageManager
Description:
[
CCode ( type_id =
"gtk_source_language_manager_get_type ()" ) ]
public sealed class LanguageManager :
Object
Provides access to [class@Language]s.
`GtkSourceLanguageManager` is an object which processes language description files and creates and stores [class@Language] objects, and
provides API to access them.
Use [func@LanguageManager.get_default] to retrieve the default instance of `GtkSourceLanguageManager`, and [
method@LanguageManager.guess_language] to get a [class@Language] for given file name and content type.
Content:
Properties:
Static methods:
Creation methods:
Methods:
public void append_search_path (string path)
Appends path
to the list of directories where the manager
looks for language files.
public unowned Language ? get_language (string id)
Gets the [class@Language] identified by the given id
in the
language manager.
public unowned string []? get_language_ids ()
Returns the ids of the available languages.
public unowned string [] get_search_path ()
Gets the list directories where this looks
for language files.
public unowned Language ? guess_language (string ? filename, string ? content_type)
Picks a [class@Language] for given file name and content type, according to
the information in lang files.
public void prepend_search_path (string path)
Prepends path
to the list of directories where the
manager
looks for language files.
public void set_search_path (string []? dirs)
Sets the list of directories where the this
looks for language files.
Inherited Members:
All known members inherited from class GLib.Object