Geany  dev
Data Fields
GeanyFiletype Struct Reference

Represents a filetype. More...

Data Fields

gchar * extension
 Default file extension for new files, or NULL. More...
 
filetype_id id
 Index in filetypes_array. More...
 
langType lang
 Represents the langType of tagmanager (see the table in tagmanager/parsers.h), -1 represents all, -2 none. More...
 
gchar * name
 Untranslated short name, such as "C", "None". More...
 
gchar ** pattern
 Array of filename-matching wildcard strings. More...
 
gchar * title
 Shown in the file open dialog, such as "C source file". More...
 

Detailed Description

Represents a filetype.

Field Documentation

gchar* GeanyFiletype::extension

Default file extension for new files, or NULL.

filetype_id GeanyFiletype::id

Index in filetypes_array.

langType GeanyFiletype::lang

Represents the langType of tagmanager (see the table in tagmanager/parsers.h), -1 represents all, -2 none.

gchar* GeanyFiletype::name

Untranslated short name, such as "C", "None".

Must not be translated as it's used for hash table lookups - use filetypes_get_display_name() instead.

gchar** GeanyFiletype::pattern

Array of filename-matching wildcard strings.

gchar* GeanyFiletype::title

Shown in the file open dialog, such as "C source file".