gtksourceview2.LanguageManager
gtksourceview2.LanguageManager — Languages Manager object for gtksourceview2.View
Description
Interface to manage available and custom source code language descriptions.
Methods
gtksourceview2.LanguageManager.get_language
def get_language(id
)
The get_language
() method gets the
gtksourceview2.Language
identified by the given id in the language manager.
gtksourceview2.LanguageManager.get_language_ids
def get_language_ids()
Returns : | a list containing the ids of the available languages or
None if no language is available. |
The get_language_ids
() method
returns the ids of the available languages.
gtksourceview2.LanguageManager.get_search_path
def get_search_path()
Returns : | a list of language files directories (as string). |
The get_search_path
() method
gets the list directories where @lm looks for language files.
gtksourceview2.LanguageManager.set_search_path
def set_search_path(dirs
)
dirs : | a list of dirs (as string). |
The set_search_path
() method sets the list of directories
where the lm looks for language files.
If dirs is None
, the search path is reset to default.
Functions
gtksourceview2.language_manager_get_default
def gtksourceview2.language_manager_get_default()
The language_manager_get_default
() function Returns the default
gtksourceview2.LanguageManager
instance.