.\" Automatically generated by Pod::Man 4.10 (Pod::Simple 3.35) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Gtk2::SourceView2::LanguageManager 3pm" .TH Gtk2::SourceView2::LanguageManager 3pm "2018-11-02" "perl v5.28.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Gtk2::SourceView2::LanguageManager .SH "HIERARCHY" .IX Header "HIERARCHY" .Vb 2 \& Glib::Object \& +\-\-\-\-Gtk2::SourceView2::LanguageManager .Ve .SH "METHODS" .IX Header "METHODS" .SS "languagemanager = Gtk2::SourceView2::LanguageManager\->\fBnew\fP" .IX Subsection "languagemanager = Gtk2::SourceView2::LanguageManager->new" .SS "languagemanager = Gtk2::SourceView2::LanguageManager\->\fBget_default\fP" .IX Subsection "languagemanager = Gtk2::SourceView2::LanguageManager->get_default" .ie n .SS "language or undef = $lm\->\fBguess_language\fP ($filename, $content_type=undef)" .el .SS "language or undef = \f(CW$lm\fP\->\fBguess_language\fP ($filename, \f(CW$content_type\fP=undef)" .IX Subsection "language or undef = $lm->guess_language ($filename, $content_type=undef)" .IP "\(bu" 4 \&\f(CW$filename\fR (string or undef) .IP "\(bu" 4 \&\f(CW$content_type\fR (string or undef) .ie n .SS "language or undef = $lm\->\fBget_language\fP ($id)" .el .SS "language or undef = \f(CW$lm\fP\->\fBget_language\fP ($id)" .IX Subsection "language or undef = $lm->get_language ($id)" .IP "\(bu" 4 \&\f(CW$id\fR (string) .ie n .SS "list = $lm\->\fBget_language_ids\fP" .el .SS "list = \f(CW$lm\fP\->\fBget_language_ids\fP" .IX Subsection "list = $lm->get_language_ids" .ie n .SS "list = $lm\->\fBget_search_path\fP" .el .SS "list = \f(CW$lm\fP\->\fBget_search_path\fP" .IX Subsection "list = $lm->get_search_path" .ie n .SS "$lm\->\fBset_search_path\fP (...)" .el .SS "\f(CW$lm\fP\->\fBset_search_path\fP (...)" .IX Subsection "$lm->set_search_path (...)" .IP "\(bu" 4 \&... (list) .PP 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 \f(CW\*(C`undef\*(C'\fR is passed then the search path is reset to default. .PP \&\fBNote\fR: 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. .SH "PROPERTIES" .IX Header "PROPERTIES" .IP "'language\-ids' (Glib::Strv : default undef : readable)" 4 .IX Item "'language-ids' (Glib::Strv : default undef : readable)" List of the ids of the available languages .IP "'search\-path' (Glib::Strv : default undef : readable / writable)" 4 .IX Item "'search-path' (Glib::Strv : default undef : readable / writable)" List of directories where the language specification files (.lang) are located .SH "SEE ALSO" .IX Header "SEE ALSO" Gtk2::SourceView2, Glib::Object .SH "COPYRIGHT" .IX Header "COPYRIGHT" Copyright (C) 2009 by Emmanuel Rodriguez