Fix anonymous tag renaming when interleaved by scopeless macros
[geany-mirror.git] / src / highlighting.h
blob73079472c149b770dfe9688e46efde121e2abd31
1 /*
2 * highlighting.h - this file is part of Geany, a fast and lightweight IDE
4 * Copyright 2005 The Geany contributors
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 #ifndef GEANY_HIGHLIGHTING_H
23 #define GEANY_HIGHLIGHTING_H 1
25 #include "filetypes.h"
27 #include "gtkcompat.h" /* Needed by ScintillaWidget.h */
28 #include "Scintilla.h" /* Needed by ScintillaWidget.h */
29 #include "ScintillaWidget.h" /* for ScintillaObject */
32 #include <glib.h>
34 G_BEGIN_DECLS
36 /** Fields representing the different attributes of a Scintilla lexer style.
37 * @see Scintilla messages @c SCI_STYLEGETFORE, etc, for use with scintilla_send_message(). */
38 typedef struct GeanyLexerStyle
40 gint foreground; /**< Foreground text colour, in @c 0xBBGGRR format. */
41 gint background; /**< Background text colour, in @c 0xBBGGRR format. */
42 gboolean bold; /**< Bold. */
43 gboolean italic; /**< Italic. */
45 GeanyLexerStyle;
48 const GeanyLexerStyle *highlighting_get_style(gint ft_id, gint style_id);
50 void highlighting_set_styles(ScintillaObject *sci, GeanyFiletype *ft);
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);
57 #ifdef GEANY_PRIVATE
59 void highlighting_init_styles(guint filetype_idx, GKeyFile *config, GKeyFile *configh);
61 void highlighting_free_styles(void);
63 void highlighting_show_color_scheme_dialog(void);
65 #endif /* GEANY_PRIVATE */
67 G_END_DECLS
69 #endif /* GEANY_HIGHLIGHTING_H */