gtksourceview2.Language — Source language object for gtksourceview2.View
class gtksourceview2.Language(gobject.GObject): |
+-- gobject.GObject +-- gtksourceview2.Language
def get_globs()
Returns : | a list containing the globs or None if no globs are found. |
The get_globs() method returns the globs associated to this language. This is just an utility wrapper around gtksourceview2.Language.get_metadata() to retrieve the "globs" metadata property and split it into an array.
def get_hidden()
Returns : | True if the language should be hidden, False otherwise. |
The get_hidden() method returns whether the language should be hidden from the user.
def get_id()
Returns : | the ID of language. |
The get_id() method returns the ID of the language. The ID is not locale-dependent.
def get_metadata(name)
name : | metadata property name. |
Returns : | value of property name stored in the metadata of language or None if language doesn't contain that metadata property. |
The get_metadata() method returns the value of property name stored in the metadata of language.
def get_mime_types()
Returns : | a list of mime types (strings). |
The get_mime_types() method returns a list of mime types for the given language. This is just an utility wrapper around get_metadata to retrieve the "mimetypes" metadata property and split it into a list.
def get_name()
Returns : | the name of language. |
The get_name() method returns the localized name of the language.
def get_section()
Returns : | the section of language. |
The get_section() method returns the localized section of the language. Each language belong to a section (ex. HTML belogs to the Markup section)
def get_style_ids()
Returns : | a list containing ids of the styles defined by this language or None if no style is defined. |
The get_style_ids() method returns the ids of the styles defined by this language.
def get_style_name(style_id)
style_id : | a style ID. |
Returns : | the name of the style with ID style_id defined by this language or None if the style has no name or there is no style with ID defined by this language |
The get_style_name() method returns the name of the style with ID style_id defined by this language.