Back to index

php5  5.3.10
zend_highlight.h
Go to the documentation of this file.
00001 /*
00002    +----------------------------------------------------------------------+
00003    | Zend Engine                                                          |
00004    +----------------------------------------------------------------------+
00005    | Copyright (c) 1998-2012 Zend Technologies Ltd. (http://www.zend.com) |
00006    +----------------------------------------------------------------------+
00007    | This source file is subject to version 2.00 of the Zend license,     |
00008    | that is bundled with this package in the file LICENSE, and is        | 
00009    | available through the world-wide-web at the following url:           |
00010    | http://www.zend.com/license/2_00.txt.                                |
00011    | If you did not receive a copy of the Zend license and are unable to  |
00012    | obtain it through the world-wide-web, please send a note to          |
00013    | license@zend.com so we can mail you a copy immediately.              |
00014    +----------------------------------------------------------------------+
00015    | Authors: Andi Gutmans <andi@zend.com>                                |
00016    |          Zeev Suraski <zeev@zend.com>                                |
00017    +----------------------------------------------------------------------+
00018 */
00019 
00020 /* $Id: zend_highlight.h 321634 2012-01-01 13:15:04Z felipe $ */
00021 
00022 #ifndef ZEND_HIGHLIGHT_H
00023 #define ZEND_HIGHLIGHT_H
00024 
00025 #define HL_COMMENT_COLOR     "#FF8000"    /* orange */
00026 #define HL_DEFAULT_COLOR     "#0000BB"    /* blue */
00027 #define HL_HTML_COLOR        "#000000"    /* black */
00028 #define HL_STRING_COLOR      "#DD0000"    /* red */
00029 #define HL_BG_COLOR          "#FFFFFF"    /* white */
00030 #define HL_KEYWORD_COLOR     "#007700"    /* green */
00031 
00032 
00033 typedef struct _zend_syntax_highlighter_ini {
00034        char *highlight_html;
00035        char *highlight_comment;
00036        char *highlight_default;
00037        char *highlight_string;
00038        char *highlight_keyword;
00039 } zend_syntax_highlighter_ini;
00040 
00041 
00042 BEGIN_EXTERN_C()
00043 ZEND_API void zend_highlight(zend_syntax_highlighter_ini *syntax_highlighter_ini TSRMLS_DC);
00044 ZEND_API void zend_strip(TSRMLS_D);
00045 ZEND_API int highlight_file(char *filename, zend_syntax_highlighter_ini *syntax_highlighter_ini TSRMLS_DC);
00046 ZEND_API int highlight_string(zval *str, zend_syntax_highlighter_ini *syntax_highlighter_ini, char *str_name TSRMLS_DC);
00047 ZEND_API void zend_html_putc(char c);
00048 ZEND_API void zend_html_puts(const char *s, uint len TSRMLS_DC);
00049 END_EXTERN_C()
00050 
00051 extern zend_syntax_highlighter_ini syntax_highlighter_ini;
00052 
00053 #endif
00054 
00055 /*
00056  * Local variables:
00057  * tab-width: 4
00058  * c-basic-offset: 4
00059  * indent-tabs-mode: t
00060  * End:
00061  */