root/Zend/zend_highlight.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2    +----------------------------------------------------------------------+
   3    | Zend Engine                                                          |
   4    +----------------------------------------------------------------------+
   5    | Copyright (c) 1998-2016 Zend Technologies Ltd. (http://www.zend.com) |
   6    +----------------------------------------------------------------------+
   7    | This source file is subject to version 2.00 of the Zend license,     |
   8    | that is bundled with this package in the file LICENSE, and is        |
   9    | available through the world-wide-web at the following url:           |
  10    | http://www.zend.com/license/2_00.txt.                                |
  11    | If you did not receive a copy of the Zend license and are unable to  |
  12    | obtain it through the world-wide-web, please send a note to          |
  13    | license@zend.com so we can mail you a copy immediately.              |
  14    +----------------------------------------------------------------------+
  15    | Authors: Andi Gutmans <andi@zend.com>                                |
  16    |          Zeev Suraski <zeev@zend.com>                                |
  17    +----------------------------------------------------------------------+
  18 */
  19 
  20 /* $Id$ */
  21 
  22 #ifndef ZEND_HIGHLIGHT_H
  23 #define ZEND_HIGHLIGHT_H
  24 
  25 #define HL_COMMENT_COLOR     "#FF8000"    /* orange */
  26 #define HL_DEFAULT_COLOR     "#0000BB"    /* blue */
  27 #define HL_HTML_COLOR        "#000000"    /* black */
  28 #define HL_STRING_COLOR      "#DD0000"    /* red */
  29 #define HL_KEYWORD_COLOR     "#007700"    /* green */
  30 
  31 
  32 typedef struct _zend_syntax_highlighter_ini {
  33         char *highlight_html;
  34         char *highlight_comment;
  35         char *highlight_default;
  36         char *highlight_string;
  37         char *highlight_keyword;
  38 } zend_syntax_highlighter_ini;
  39 
  40 
  41 BEGIN_EXTERN_C()
  42 ZEND_API void zend_highlight(zend_syntax_highlighter_ini *syntax_highlighter_ini);
  43 ZEND_API void zend_strip(void);
  44 ZEND_API int highlight_file(char *filename, zend_syntax_highlighter_ini *syntax_highlighter_ini);
  45 ZEND_API int highlight_string(zval *str, zend_syntax_highlighter_ini *syntax_highlighter_ini, char *str_name);
  46 ZEND_API void zend_html_putc(char c);
  47 ZEND_API void zend_html_puts(const char *s, size_t len);
  48 END_EXTERN_C()
  49 
  50 extern zend_syntax_highlighter_ini syntax_highlighter_ini;
  51 
  52 #endif
  53 
  54 /*
  55  * Local variables:
  56  * tab-width: 4
  57  * c-basic-offset: 4
  58  * indent-tabs-mode: t
  59  * End:
  60  */

/* [<][>][^][v][top][bottom][index][help] */