Add xml_indent_tags filetype setting for documents using the
[geany-mirror.git] / src / filetypesprivate.h
blob8a74ac748221a2608c987c1bde556d2b1eb7226a
1 /*
2 * filetypesprivate.h - this file is part of Geany, a fast and lightweight IDE
4 * Copyright 2008-2010 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
5 * Copyright 2008-2010 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
20 * MA 02110-1301, USA.
22 * $Id$
26 #ifndef GEANY_FILETYPES_PRIVATE_H
27 #define GEANY_FILETYPES_PRIVATE_H
29 #ifdef HAVE_REGEX_H
30 # include <regex.h>
31 #else
32 # include "gnuregex.h"
33 #endif
36 /* Private GeanyFiletype fields */
37 typedef struct GeanyFiletypePrivate
39 GtkWidget *menu_item; /* holds a pointer to the menu item for this filetype */
40 gboolean keyfile_loaded;
41 regex_t error_regex;
42 gboolean error_regex_compiled;
43 gchar *last_string; /* last one compiled */
44 gboolean custom;
45 gint symbol_list_sort_mode;
46 gboolean xml_indent_tags; /* XML tag autoindentation, for HTML and XML filetypes */
48 GeanyFiletypePrivate;
50 #endif