Add Clojure filetype
[geany-mirror.git] / src / highlighting.h
blobb652f0875329c188c3f1433fe7ad61762915ba50
1 /*
2 * highlighting.h - this file is part of Geany, a fast and lightweight IDE
4 * Copyright 2005-2012 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
5 * Copyright 2006-2012 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 along
18 * with this program; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 #ifndef GEANY_HIGHLIGHTING_H
24 #define GEANY_HIGHLIGHTING_H 1
26 G_BEGIN_DECLS
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_styles(guint 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 void highlighting_show_color_scheme_dialog(void);
58 G_END_DECLS
60 #endif