Rechercher une page de manuel
Gtk2::SourceView2::LanguageManager.3pm
Langue: en
Version: 2010-06-20 (ubuntu - 24/10/10)
Section: 3 (Bibliothèques de fonctions)
Sommaire
- NAME
- HIERARCHY
- METHODS
- languagemanager = Gtk2::SourceView2::LanguageManager->new
- languagemanager = Gtk2::SourceView2::LanguageManager->get_default
- language or undef = $lm->guess_language ($filename, $content_type=undef)
- language or undef = $lm->get_language ($id)
- list = $lm->get_language_ids
- list = $lm->get_search_path
- $lm->set_search_path (...)
- PROPERTIES
- SEE ALSO
- COPYRIGHT
NAME
Gtk2::SourceView2::LanguageManagerHIERARCHY
Glib::Object +----Gtk2::SourceView2::LanguageManager
METHODS
languagemanager = Gtk2::SourceView2::LanguageManager->new
languagemanager = Gtk2::SourceView2::LanguageManager->get_default
language or undef = $lm->guess_language ($filename, $content_type=undef)
- •
- $filename (string or undef)
- •
- $content_type (string or undef)
language or undef = $lm->get_language ($id)
- •
- $id (string)
list = $lm->get_language_ids
list = $lm->get_search_path
$lm->set_search_path (...)
- •
- ... (list)
Sets the list of directories where the lm looks for language files. If no dirs are given (empty list) then the search path is cleared, if "undef" is passed then the search path is reset to default.
Note: At the moment this function can be called only before the language files are loaded for the first time. In practice to set a custom search path for a Gtk2::SourceLanguageManager, you have to call this function right after creating it.
PROPERTIES
- 'language-ids' (Glib::Strv : readable)
- List of the ids of the available languages
- 'search-path' (Glib::Strv : readable / writable)
- List of directories where the language specification files (.lang) are located
SEE ALSO
Gtk2::SourceView2, Glib::ObjectCOPYRIGHT
Copyright (C) 2009 by Emmanuel RodriguezContenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre