Kaydet (Commit) c9d315b2 authored tarafından Enrico Tröger's avatar Enrico Tröger

added new filetype Conf


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@20 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst b08a2013
......@@ -17,6 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Id$
*/
......@@ -224,6 +225,20 @@ void filetypes_init_types(void)
filetypes[GEANY_FILETYPES_CSS]->style_func_ptr = styleset_css;
filetypes_create_menu_item(filetype_menu, filetypes[GEANY_FILETYPES_CSS]->title, filetypes[GEANY_FILETYPES_CSS]);
filetypes[GEANY_FILETYPES_CONF] = (filetype*)g_malloc(sizeof(filetype));
filetypes[GEANY_FILETYPES_CONF]->id = GEANY_FILETYPES_CONF;
filetypes[GEANY_FILETYPES_CONF]->name = g_strdup("Conf");
filetypes[GEANY_FILETYPES_CONF]->has_tags = TRUE;
filetypes[GEANY_FILETYPES_CONF]->title = g_strdup(_("Config file"));
filetypes[GEANY_FILETYPES_CONF]->extension = g_strdup("conf");
filetypes[GEANY_FILETYPES_CONF]->pattern[0] = g_strdup("*.ini");
filetypes[GEANY_FILETYPES_CONF]->pattern[1] = g_strdup("*.conf");
filetypes[GEANY_FILETYPES_CONF]->pattern[2] = g_strdup("config");
filetypes[GEANY_FILETYPES_CONF]->pattern[3] = g_strdup("*rc");
filetypes[GEANY_FILETYPES_CONF]->pattern[4] = NULL; // always have to be NULL
filetypes[GEANY_FILETYPES_CONF]->style_func_ptr = styleset_conf;
filetypes_create_menu_item(filetype_menu, filetypes[GEANY_FILETYPES_CONF]->title, filetypes[GEANY_FILETYPES_CONF]);
filetypes[GEANY_FILETYPES_ALL] = (filetype*)g_malloc(sizeof(filetype));
filetypes[GEANY_FILETYPES_ALL]->id = GEANY_FILETYPES_ALL;
filetypes[GEANY_FILETYPES_ALL]->name = g_strdup("None");
......
......@@ -17,6 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Id$
*/
......@@ -41,6 +42,7 @@ enum
GEANY_FILETYPES_SH,
GEANY_FILETYPES_MAKE,
GEANY_FILETYPES_CSS,
GEANY_FILETYPES_CONF,
GEANY_FILETYPES_ALL,
GEANY_MAX_FILE_TYPES
};
......
This diff is collapsed.
......@@ -17,6 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Id$
*/
......@@ -61,3 +62,5 @@ void styleset_docbook(ScintillaObject *sci);
void styleset_none(ScintillaObject *sci);
void styleset_css(ScintillaObject *sci);
void styleset_conf(ScintillaObject *sci);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment