2 * highlighting.h - this file is part of Geany, a fast and lightweight IDE
4 * Copyright 2005-2009 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
5 * Copyright 2006-2009 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.
25 #ifndef GEANY_HIGHLIGHTING_H
26 #define GEANY_HIGHLIGHTING_H 1
28 #include "Scintilla.h"
29 #include "ScintillaWidget.h"
32 /** Fields representing the different attributes of a Scintilla lexer style.
33 * @see Scintilla messages @c SCI_STYLEGETFORE, etc, for use with ScintillaFuncs::send_message(). */
34 typedef struct GeanyLexerStyle
36 gint foreground
; /**< Foreground text colour, in @c 0xBBGGRR format. */
37 gint background
; /**< Background text colour, in @c 0xBBGGRR format. */
38 gboolean bold
; /**< Bold. */
39 gboolean italic
; /**< Italic. */
44 void highlighting_init_styles(gint filetype_idx
, GKeyFile
*config
, GKeyFile
*configh
);
46 void highlighting_set_styles(ScintillaObject
*sci
, gint filetype_idx
);
48 const GeanyLexerStyle
*highlighting_get_style(gint ft_id
, gint style_id
);
50 void highlighting_free_styles(void);