## IAnjutaEditorLanguage

IAnjutaEditorLanguage — Text editor language interface

## Stability Level

Unstable, unless otherwise indicated

## Synopsis

    #include <libanjuta/interfaces/ianjuta-editor-language.h>

    #define             IANJUTA_EDITOR_LANGUAGE_ERROR
    struct              IAnjutaEditorLanguageIface;
    GQuark              ianjuta_editor_language_error_quark (void);
    const gchar *       ianjuta_editor_language_get_language
                                                            (IAnjutaEditorLanguage *obj,
                                                             GError **err);
    const gchar *       ianjuta_editor_language_get_language_name
                                                            (IAnjutaEditorLanguage *obj,
                                                             const gchar *language,
                                                             GError **err);
    const GList *       ianjuta_editor_language_get_supported_languages
                                                            (IAnjutaEditorLanguage *obj,
                                                             GError **err);
    void                ianjuta_editor_language_set_language
                                                            (IAnjutaEditorLanguage *obj,
                                                             const gchar *language,
                                                             GError **err);

## Description

## Details

### IANJUTA_EDITOR_LANGUAGE_ERROR

    #define IANJUTA_EDITOR_LANGUAGE_ERROR ianjuta_editor_language_error_quark()

### struct IAnjutaEditorLanguageIface

    struct IAnjutaEditorLanguageIface {
    	IAnjutaEditorIface g_iface;

    	/* Signal */
    	void (*language_changed) (IAnjutaEditorLanguage *obj, const gchar *language);

    	const gchar * (*get_language) (IAnjutaEditorLanguage *obj, GError **err);
    	const gchar * (*get_language_name) (IAnjutaEditorLanguage *obj, const gchar* language, GError **err);
    	const GList* (*get_supported_languages) (IAnjutaEditorLanguage *obj, GError **err);
    	void (*set_language) (IAnjutaEditorLanguage *obj, const gchar* language, GError **err);
    };

### ianjuta_editor_language_error_quark ()

    GQuark              ianjuta_editor_language_error_quark (void);

### ianjuta_editor_language_get_language ()

    const gchar *       ianjuta_editor_language_get_language
                                                            (IAnjutaEditorLanguage *obj,
                                                             GError **err);

Return the name of the currently used language

`obj` : | Self
`err` : | Error propagation and reporting

### ianjuta_editor_language_get_language_name ()

    const gchar *       ianjuta_editor_language_get_language_name
                                                            (IAnjutaEditorLanguage *obj,
                                                             const gchar *language,
                                                             GError **err);

### ianjuta_editor_language_get_supported_languages ()

    const GList *       ianjuta_editor_language_get_supported_languages
                                                            (IAnjutaEditorLanguage *obj,
                                                             GError **err);

Return a list of languages supported by the editor Note: These list contains the names in the form the editor implementation knows them

`obj` : | Self
`err` : | Error propagation and reporting
Returns : | . [element-type utf8]

### ianjuta_editor_language_set_language ()

    void                ianjuta_editor_language_set_language
                                                            (IAnjutaEditorLanguage *obj,
                                                             const gchar *language,
                                                             GError **err);

Force the editor to use a given language

`obj` : | Self
`language` : | Language
`err` : | Error propagation and reporting