Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 61 lines (50 sloc) 2.419 kb
573b460 @andigutmans Zend Library
andigutmans authored
1 /*
2 +----------------------------------------------------------------------+
3 | Zend Engine |
4 +----------------------------------------------------------------------+
8775a37 @felipensp - Year++
felipensp authored
5 | Copyright (c) 1998-2012 Zend Technologies Ltd. (http://www.zend.com) |
573b460 @andigutmans Zend Library
andigutmans authored
6 +----------------------------------------------------------------------+
d863d52 Update headers.
Sebastian Bergmann authored
7 | This source file is subject to version 2.00 of the Zend license, |
b5b1117 @zsuraski License update
zsuraski authored
8 | that is bundled with this package in the file LICENSE, and is |
f68c7ff updating license information in the headers.
James Cox authored
9 | available through the world-wide-web at the following url: |
d863d52 Update headers.
Sebastian Bergmann authored
10 | http://www.zend.com/license/2_00.txt. |
b5b1117 @zsuraski License update
zsuraski authored
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. |
573b460 @andigutmans Zend Library
andigutmans authored
14 +----------------------------------------------------------------------+
15 | Authors: Andi Gutmans <andi@zend.com> |
16 | Zeev Suraski <zeev@zend.com> |
17 +----------------------------------------------------------------------+
18 */
19
333406b - Added some missing CVS $Id$ tags, headers and footers.
foobar authored
20 /* $Id$ */
b5b1117 @zsuraski License update
zsuraski authored
21
a617217 Replace macros which begin with an underscore through an appropiately
Sascha Schumann authored
22 #ifndef ZEND_HIGHLIGHT_H
23 #define ZEND_HIGHLIGHT_H
573b460 @andigutmans Zend Library
andigutmans authored
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
1250c43 @zsuraski * Add struct name to all typedef's so that they can be debugged with MSV...
zsuraski authored
32 typedef struct _zend_syntax_highlighter_ini {
573b460 @andigutmans Zend Library
andigutmans authored
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
1aa2c5c @zsuraski Ok, call me crazy, because I probably am.
zsuraski authored
41 BEGIN_EXTERN_C()
4187439 @zsuraski More TSRMLS_FETCH work
zsuraski authored
42 ZEND_API void zend_highlight(zend_syntax_highlighter_ini *syntax_highlighter_ini TSRMLS_DC);
ff4cc2c MFZE1 (added zend_strip mode in the highliter)
Sebastian Bergmann authored
43 ZEND_API void zend_strip(TSRMLS_D);
8ce8324 @zsuraski More TSRMLS_FETCH annihilation
zsuraski authored
44 ZEND_API int highlight_file(char *filename, zend_syntax_highlighter_ini *syntax_highlighter_ini TSRMLS_DC);
45 ZEND_API int highlight_string(zval *str, zend_syntax_highlighter_ini *syntax_highlighter_ini, char *str_name TSRMLS_DC);
c80906e @zsuraski Open these up for the API
zsuraski authored
46 ZEND_API void zend_html_putc(char c);
1264214 Sync zend_html_puts parameter list with Zend Engine 1.
Sebastian Bergmann authored
47 ZEND_API void zend_html_puts(const char *s, uint len TSRMLS_DC);
1aa2c5c @zsuraski Ok, call me crazy, because I probably am.
zsuraski authored
48 END_EXTERN_C()
573b460 @andigutmans Zend Library
andigutmans authored
49
50 extern zend_syntax_highlighter_ini syntax_highlighter_ini;
51
52 #endif
333406b - Added some missing CVS $Id$ tags, headers and footers.
foobar authored
53
54 /*
55 * Local variables:
56 * tab-width: 4
57 * c-basic-offset: 4
58 * indent-tabs-mode: t
59 * End:
60 */
Something went wrong with that request. Please try again.