Gtk2::S...Language(3)
β¨ NAME β¨
okay so bestie, welcome to Gtk2::SourceView2::Language π β it's a whole class from the Gtk2::SourceView2 world, and it lives in the User Contributed Perl Documentation section of the manual (that's manual section 3, iykyk π«Ά).
π¦ HIERARCHY π¦
the family tree, and yes she's got good genes:
Glib::Object
+----Gtk2::SourceView2::Language
so like, every Glib::Object thing comes free, and then Gtk2::SourceView2::Language is the glow-up on top. main character energy fr fr π
π METHODS π
this is the part where she really ate. one bullet per method, no skips, no cap:
list = $language->get_globsβ hands you back a list of the globs for this language πboolean = $language->get_hiddenβ a yes/no on whether this language is hiddenstring = $language->get_idβ the language's id, as a stringstring or undef = $language->get_metadata ($name)β grabs a metadata value, and it might just beundefif there's nothing there, so don't be shocked π$name(string) β the name of the metadata you're asking for
list = $language->get_mime_typesβ the mime types, as a liststring = $language->get_nameβ the language name πstring = $language->get_sectionβ the section it belongs tolist = $language->get_style_idsβ the style ids, as a list β¨string or undef = $language->get_style_name ($style_id)β the style name for a given style id, orundefif it's giving nothing$style_id(string) β the style id you're curious about
πΈ PROPERTIES πΈ
the ~vibes~ she carries around. note that all three of these are readable only β you can look, you cannot touch π
'hidden'(boolean: defaultfalse: readable) β whether the language should be hidden from the user π'id'(string: defaultundef: readable) β language id'name'(string: defaultundef: readable) β language name'section'(string: defaultundef: readable) β language section
π SEE ALSO π
go read these next, bestie, they're the supporting cast:
Gtk2::SourceView2Glib::Object
π COPYRIGHT π
Copyright (C) 2009 by Emmanuel Rodriguez
and that's the whole page, no notes π«Ά go forth and slay your syntax highlighting, periodt β¨
this has been perl v5.42.0, dated 2025-07-25, from Gtk2::S...Language(3) β mwah π
π¦ where this page comes from
- fedora 43: perl-Gtk2-SourceView2 0.12-18.fc43 Β· GPL-2.0-or-later OR Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms