Fixup various filedefs mappings
[geany-mirror.git] / src / highlighting.h
blob609ff9a3442911255c4f626a4706b437d64ecc8c
1 /*
2 * highlighting.h - this file is part of Geany, a fast and lightweight IDE
4 * Copyright 2005-2011 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
5 * Copyright 2006-2011 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, MA 02110-1301, USA.
23 #ifndef GEANY_HIGHLIGHTING_H
24 #define GEANY_HIGHLIGHTING_H 1
26 #include "Scintilla.h"
27 #include "ScintillaWidget.h"
30 /** Fields representing the different attributes of a Scintilla lexer style.
31 * @see Scintilla messages @c SCI_STYLEGETFORE, etc, for use with scintilla_send_message(). */
32 typedef struct GeanyLexerStyle
34 gint foreground; /**< Foreground text colour, in @c 0xBBGGRR format. */
35 gint background; /**< Background text colour, in @c 0xBBGGRR format. */
36 gboolean bold; /**< Bold. */
37 gboolean italic; /**< Italic. */
39 GeanyLexerStyle;
42 void highlighting_init(void);
44 void highlighting_init_styles(gint filetype_idx, GKeyFile *config, GKeyFile *configh);
46 void highlighting_set_styles(ScintillaObject *sci, GeanyFiletype *ft);
48 const GeanyLexerStyle *highlighting_get_style(gint ft_id, gint style_id);
50 void highlighting_free_styles(void);
52 gboolean highlighting_is_string_style(gint lexer, gint style);
53 gboolean highlighting_is_comment_style(gint lexer, gint style);
54 gboolean highlighting_is_code_style(gint lexer, gint style);
56 #endif