Version bump.
[geany-mirror.git] / src / highlighting.h
blobdd341bd4f5cc150534517ac02e70905edf7aa4c6
1 /*
2 * highlighting.h - this file is part of Geany, a fast and lightweight IDE
4 * Copyright 2005-2010 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
5 * Copyright 2006-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, MA 02110-1301, USA.
21 * $Id$
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 scintilla_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. */
41 GeanyLexerStyle;
44 void highlighting_init(void);
46 void highlighting_init_styles(gint filetype_idx, GKeyFile *config, GKeyFile *configh);
48 void highlighting_set_styles(ScintillaObject *sci, GeanyFiletype *ft);
50 const GeanyLexerStyle *highlighting_get_style(gint ft_id, gint style_id);
52 void highlighting_free_styles(void);
54 #endif