1 /* Copyright (c) 2007 John E. Davis 2 * This file is part of JED editor library source. 3 * 4 * You may distribute this file under the terms the GNU General Public 5 * License. See the file COPYING for more information. 6 */ 7 #ifndef _JED_COLORS_H_ 8 #define _JED_COLORS_H_ 9 10 /* These numbers should not be changed. They are hard-coded in the 11 * dfa cache files. 12 */ 13 #define JNORMAL_COLOR 0 14 #define JCURSOR_COLOR 1 15 #define JSTATUS_COLOR 2 16 #define JREGION_COLOR 3 17 #define JMENU_COLOR 4 18 #define JOP_COLOR 5 19 #define JNUM_COLOR 6 20 #define JSTR_COLOR 7 21 #define JCOM_COLOR 8 22 #define JDELIM_COLOR 9 23 #define JPREPROC_COLOR 10 24 #define JMESSAGE_COLOR 11 25 #define JERROR_COLOR 12 26 #define JDOLLAR_COLOR 13 27 #define JDOTS_COLOR 14 28 #define JMENU_CHAR_COLOR 15 29 #define JMENU_SHADOW_COLOR 16 30 #define JMENU_SELECTION_COLOR 17 31 #define JMENU_POPUP_COLOR 18 32 #define JMENU_SELECTED_CHAR_COLOR 19 33 #define JCURSOROVR_COLOR 20 34 #define JLINENUM_COLOR 21 35 #define JTWS_COLOR 22 36 #define JTAB_COLOR 23 37 #define JURL_COLOR 24 38 #define JITALIC_COLOR 25 39 #define JUNDERLINE_COLOR 26 40 #define JBOLD_COLOR 27 41 #define JHTML_KEY_COLOR 28 42 #define JKEY_COLOR 29 43 #define JKEY1_COLOR (JKEY_COLOR+1) 44 #define JKEY2_COLOR (JKEY_COLOR+2) 45 #define JKEY3_COLOR (JKEY_COLOR+3) 46 #define JKEY4_COLOR (JKEY_COLOR+4) 47 #define JKEY5_COLOR (JKEY_COLOR+5) 48 #define JKEY6_COLOR (JKEY_COLOR+6) 49 #define JKEY7_COLOR (JKEY_COLOR+7) 50 #define JKEY8_COLOR (JKEY_COLOR+8) 51 #define JKEY9_COLOR (JKEY_COLOR+9) /* 38 */ 52 53 #define FIRST_USER_COLOR 64 54 55 #if SLANG_VERSION < 20000 56 # define JMAX_COLORS 128 /* Do NOT increase this number */ 57 #else 58 # define JMAX_COLORS 256 /* Do NOT increase this number */ 59 #endif 60 61 extern int jed_init_color_intrinsics (void); 62 extern int jed_get_color_obj (char *name); 63 extern int jed_set_color (int, char *, char *); 64 65 #endif /* _JED_COLORS_H_ */ 66