1Gtk2::SourceView2::LangUusaegreMCaonnatgreirb(u3t)ed PerGltkD2o:c:uSmoeunrtcaetViioenw2::LanguageManager(3)
2
3
4

NAME

6       Gtk2::SourceView2::LanguageManager
7

HIERARCHY

9         Glib::Object
10         +----Gtk2::SourceView2::LanguageManager
11

METHODS

13   languagemanager = Gtk2::SourceView2::LanguageManager->new
14   languagemanager = Gtk2::SourceView2::LanguageManager->get_default
15   language or undef = $lm->guess_language ($filename, $content_type=undef)
16       ·   $filename (string or undef)
17
18       ·   $content_type (string or undef)
19
20   language or undef = $lm->get_language ($id)
21       ·   $id (string)
22
23   list = $lm->get_language_ids
24   list = $lm->get_search_path
25   $lm->set_search_path (...)
26       ·   ... (list)
27
28       Sets the list of directories where the lm looks for language files. If
29       no dirs are given (empty list) then the search path is cleared, if
30       "undef" is passed then the search path is reset to default.
31
32       Note: At the moment this function can be called only before the
33       language files are loaded for the first time. In practice to set a
34       custom search path for a Gtk2::SourceLanguageManager, you have to call
35       this function right after creating it.
36

PROPERTIES

38       'language-ids' (Glib::Strv : default undef : readable)
39           List of the ids of the available languages
40
41       'search-path' (Glib::Strv : default undef : readable / writable)
42           List of directories where the language specification files (.lang)
43           are located
44

SEE ALSO

46       Gtk2::SourceView2, Glib::Object
47
49       Copyright (C) 2009 by Emmanuel Rodriguez
50
51
52
53perl v5.28.0                      2018-07-G1t4k2::SourceView2::LanguageManager(3)
Impressum