Fix our use of $em_tab_dist after it was changed to 0 for 'turned of'.
[nedit.git] / source / highlightData.h
blob91dfbc45c4ff7e61e3191ced8c3f1c625a7ab29a
1 /* $Id: highlightData.h,v 1.13 2004/11/09 21:58:44 yooden Exp $ */
2 /*******************************************************************************
3 * *
4 * highlightData.h -- Nirvana Editor Highlight Data Header File *
5 * *
6 * Copyright 2003 The NEdit Developers *
7 * *
8 * This is free software; you can redistribute it and/or modify it under the *
9 * terms of the GNU General Public License as published by the Free Software *
10 * Foundation; either version 2 of the License, or (at your option) any later *
11 * version. In addition, you may distribute versions of this program linked to *
12 * Motif or Open Motif. See README for details. *
13 * *
14 * This software is distributed in the hope that it will be useful, but WITHOUT *
15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or *
16 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for *
17 * more details. *
18 * *
19 * You should have received a copy of the GNU General Public License along with *
20 * software; if not, write to the Free Software Foundation, Inc., 59 Temple *
21 * Place, Suite 330, Boston, MA 02111-1307 USA *
22 * *
23 * Nirvana Text Editor *
24 * July 31, 2001 *
25 * *
26 *******************************************************************************/
28 #ifndef NEDIT_HIGHLIGHTDATA_H_INCLUDED
29 #define NEDIT_HIGHLIGHTDATA_H_INCLUDED
31 #include "nedit.h"
32 #include "highlight.h"
34 #include <X11/Intrinsic.h>
35 #include <X11/Xlib.h>
37 patternSet *FindPatternSet(const char *langModeName);
38 int LoadHighlightString(char *inString, int convertOld);
39 char *WriteHighlightString(void);
40 int LoadStylesString(char *inString);
41 char *WriteStylesString(void);
42 void EditHighlightStyles(const char *initialStyle);
43 void EditHighlightPatterns(WindowInfo *window);
44 void UpdateLanguageModeMenu(void);
45 int LMHasHighlightPatterns(const char *languageMode);
46 XFontStruct *FontOfNamedStyle(WindowInfo *window, const char *styleName);
47 int FontOfNamedStyleIsBold(char *styleName);
48 int FontOfNamedStyleIsItalic(char *styleName);
49 char *ColorOfNamedStyle(const char *styleName);
50 char *BgColorOfNamedStyle(const char *styleName);
51 int IndexOfNamedStyle(const char *styleName);
52 int NamedStyleExists(const char *styleName);
53 void RenameHighlightPattern(const char *oldName, const char *newName);
55 #endif /* NEDIT_HIGHLIGHTDATA_H_INCLUDED */