Language
Object Hierarchy:
GtkSource.Language
GtkSource.Language
GtkSource.Language
GLib.Object
GLib.Object
GLib.Object->GtkSource.Language
Description:
[ CCode ( type_id = "gtk_source_language_get_type ()" ) ]public class Language : Object
Represents a syntax highlighted language.
A `GtkSourceLanguage` represents a programming or markup language, affecting syntax highlighting and [context classes](
./class.Buffer.html#context-classes).
Use [class@LanguageManager] to obtain a `GtkSourceLanguage` instance, and [[email protected] _language] to apply it to a [class@Buffer].
Content:
Properties:
public bool hidden { get ; }
public string id { get ; }
public string name { get ; }
public string section { get ; }
Creation methods:
Methods:
public string []? get_globs ()
Returns the globs associated to this language.
public bool get_hidden ()
Returns whether the language should be hidden from the user.
public unowned string get_id ()
Returns the ID of the language.
public unowned string ? get_metadata (string name)
public string []? get_mime_types ()
Returns the mime types associated to this language.
public unowned string get_name ()
Returns the localized name of the language.
public unowned string get_section ()
Returns the localized section of the language.
public unowned string ? get_style_fallback (string style_id)
Returns the ID of the style to use if the specified style_id
is not present in the current style scheme.
public string []? get_style_ids ()
Returns the ids of the styles defined by this
this .
public unowned string ? get_style_name (string style_id)
Returns the name of the style with ID style_id
defined by
this this .
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref