2005-11-22 12:26:26 +00:00
|
|
|
/*
|
|
|
|
* highlighting.h - this file is part of Geany, a fast and lightweight IDE
|
|
|
|
*
|
2010-01-01 22:55:18 +00:00
|
|
|
* Copyright 2005-2010 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
|
|
|
|
* Copyright 2006-2010 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
2005-11-22 12:26:26 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2006-05-16 19:04:04 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2005-11-22 12:26:26 +00:00
|
|
|
*
|
2005-11-27 20:46:36 +00:00
|
|
|
* $Id$
|
2005-11-22 12:26:26 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
2006-01-03 12:46:20 +00:00
|
|
|
#ifndef GEANY_HIGHLIGHTING_H
|
|
|
|
#define GEANY_HIGHLIGHTING_H 1
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2006-08-20 20:39:59 +00:00
|
|
|
#include "Scintilla.h"
|
|
|
|
#include "ScintillaWidget.h"
|
|
|
|
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2008-08-26 12:43:46 +00:00
|
|
|
/** Fields representing the different attributes of a Scintilla lexer style.
|
2010-01-25 15:53:54 +00:00
|
|
|
* @see Scintilla messages @c SCI_STYLEGETFORE, etc, for use with scintilla_send_message(). */
|
2008-08-26 12:43:46 +00:00
|
|
|
typedef struct GeanyLexerStyle
|
2007-12-16 11:27:59 +00:00
|
|
|
{
|
2008-08-26 12:43:46 +00:00
|
|
|
gint foreground; /**< Foreground text colour, in @c 0xBBGGRR format. */
|
|
|
|
gint background; /**< Background text colour, in @c 0xBBGGRR format. */
|
|
|
|
gboolean bold; /**< Bold. */
|
|
|
|
gboolean italic; /**< Italic. */
|
|
|
|
}
|
|
|
|
GeanyLexerStyle;
|
2007-12-16 11:27:59 +00:00
|
|
|
|
|
|
|
|
2009-11-04 12:36:56 +00:00
|
|
|
void highlighting_init(void);
|
|
|
|
|
2007-11-02 17:44:05 +00:00
|
|
|
void highlighting_init_styles(gint filetype_idx, GKeyFile *config, GKeyFile *configh);
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2009-10-15 16:54:15 +00:00
|
|
|
void highlighting_set_styles(ScintillaObject *sci, GeanyFiletype *ft);
|
2005-11-22 12:26:26 +00:00
|
|
|
|
2008-08-26 12:43:46 +00:00
|
|
|
const GeanyLexerStyle *highlighting_get_style(gint ft_id, gint style_id);
|
2007-12-16 11:27:59 +00:00
|
|
|
|
2007-11-02 17:44:05 +00:00
|
|
|
void highlighting_free_styles(void);
|
2007-07-26 09:50:12 +00:00
|
|
|
|
2006-01-03 12:46:20 +00:00
|
|
|
#endif
|