Annotation of embedaddon/php/Zend/zend_highlight.h, revision 1.1
1.1 ! misho 1: /*
! 2: +----------------------------------------------------------------------+
! 3: | Zend Engine |
! 4: +----------------------------------------------------------------------+
! 5: | Copyright (c) 1998-2012 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: zend_highlight.h 321634 2012-01-01 13:15:04Z felipe $ */
! 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_BG_COLOR "#FFFFFF" /* white */
! 30: #define HL_KEYWORD_COLOR "#007700" /* green */
! 31:
! 32:
! 33: typedef struct _zend_syntax_highlighter_ini {
! 34: char *highlight_html;
! 35: char *highlight_comment;
! 36: char *highlight_default;
! 37: char *highlight_string;
! 38: char *highlight_keyword;
! 39: } zend_syntax_highlighter_ini;
! 40:
! 41:
! 42: BEGIN_EXTERN_C()
! 43: ZEND_API void zend_highlight(zend_syntax_highlighter_ini *syntax_highlighter_ini TSRMLS_DC);
! 44: ZEND_API void zend_strip(TSRMLS_D);
! 45: ZEND_API int highlight_file(char *filename, zend_syntax_highlighter_ini *syntax_highlighter_ini TSRMLS_DC);
! 46: ZEND_API int highlight_string(zval *str, zend_syntax_highlighter_ini *syntax_highlighter_ini, char *str_name TSRMLS_DC);
! 47: ZEND_API void zend_html_putc(char c);
! 48: ZEND_API void zend_html_puts(const char *s, uint len TSRMLS_DC);
! 49: END_EXTERN_C()
! 50:
! 51: extern zend_syntax_highlighter_ini syntax_highlighter_ini;
! 52:
! 53: #endif
! 54:
! 55: /*
! 56: * Local variables:
! 57: * tab-width: 4
! 58: * c-basic-offset: 4
! 59: * indent-tabs-mode: t
! 60: * End:
! 61: */
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>