Gtk2::S...Language(3)

πŸ“¦
version 0.12 Β· 2 versions
, in fedora 43

✨ 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 hidden
  • string = $language->get_id β€” the language's id, as a string
  • string or undef = $language->get_metadata ($name) β€” grabs a metadata value, and it might just be undef if 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 list
  • string = $language->get_name β€” the language name πŸŽ€
  • string = $language->get_section β€” the section it belongs to
  • list = $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, or undef if 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 : default false : readable) β€” whether the language should be hidden from the user πŸ™ˆ
  • 'id' (string : default undef : readable) β€” language id
  • 'name' (string : default undef : readable) β€” language name
  • 'section' (string : default undef : readable) β€” language section

πŸ‘€ SEE ALSO πŸ‘€

go read these next, bestie, they're the supporting cast:

  • Gtk2::SourceView2
  • Glib::Object

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