]> git.stg.codes - stg.git/blob - doc/xslt/highlighting/php-hl.xml
Set services and corps to plugins
[stg.git] / doc / xslt / highlighting / php-hl.xml
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <!--\r
3 \r
4 Syntax highlighting definition for PHP\r
5 \r
6 xslthl - XSLT Syntax Highlighting\r
7 http://sourceforge.net/projects/xslthl/\r
8 Copyright (C) 2005-2008 Michal Molhanec, Jirka Kosek, Michiel Hendriks\r
9 \r
10 This software is provided 'as-is', without any express or implied\r
11 warranty.  In no event will the authors be held liable for any damages\r
12 arising from the use of this software.\r
13 \r
14 Permission is granted to anyone to use this software for any purpose,\r
15 including commercial applications, and to alter it and redistribute it\r
16 freely, subject to the following restrictions:\r
17 \r
18 1. The origin of this software must not be misrepresented; you must not\r
19    claim that you wrote the original software. If you use this software\r
20    in a product, an acknowledgment in the product documentation would be\r
21    appreciated but is not required.\r
22 2. Altered source versions must be plainly marked as such, and must not be\r
23    misrepresented as being the original software.\r
24 3. This notice may not be removed or altered from any source distribution.\r
25 \r
26 Michal Molhanec <mol1111 at users.sourceforge.net>\r
27 Jirka Kosek <kosek at users.sourceforge.net>\r
28 Michiel Hendriks <elmuerte at users.sourceforge.net>\r
29 \r
30 -->\r
31 <highlighters>\r
32         <highlighter type="multiline-comment">\r
33                 <start>/**</start>\r
34                 <end>*/</end>\r
35                 <style>doccomment</style>\r
36         </highlighter>\r
37         <highlighter type="oneline-comment">\r
38                 <start>///</start>\r
39                 <style>doccomment</style>\r
40         </highlighter>\r
41         <highlighter type="multiline-comment">\r
42                 <start>/*</start>\r
43                 <end>*/</end>\r
44         </highlighter>\r
45         <highlighter type="oneline-comment">//</highlighter>\r
46         <highlighter type="oneline-comment">#</highlighter>\r
47         <highlighter type="string">\r
48                 <string>"</string>\r
49                 <escape>\</escape>\r
50                 <spanNewLines />\r
51         </highlighter>\r
52         <highlighter type="string">\r
53                 <string>'</string>\r
54                 <escape>\</escape>\r
55                 <spanNewLines />\r
56         </highlighter>\r
57         <highlighter type="heredoc">\r
58                 <start>&lt;&lt;&lt;</start>\r
59         </highlighter>\r
60         <highlighter type="hexnumber">\r
61                 <prefix>0x</prefix>\r
62                 <ignoreCase />\r
63         </highlighter>\r
64         <highlighter type="number">\r
65                 <point>.</point>\r
66                 <exponent>e</exponent>\r
67                 <ignoreCase />\r
68         </highlighter>\r
69         <highlighter type="keywords">\r
70                 <keyword>and</keyword>\r
71                 <keyword>or</keyword>\r
72                 <keyword>xor</keyword>\r
73                 <keyword>__FILE__</keyword>\r
74                 <keyword>exception</keyword>\r
75                 <keyword>__LINE__</keyword>\r
76                 <keyword>array</keyword>\r
77                 <keyword>as</keyword>\r
78                 <keyword>break</keyword>\r
79                 <keyword>case</keyword>\r
80                 <keyword>class</keyword>\r
81                 <keyword>const</keyword>\r
82                 <keyword>continue</keyword>\r
83                 <keyword>declare</keyword>\r
84                 <keyword>default</keyword>\r
85                 <keyword>die</keyword>\r
86                 <keyword>do</keyword>\r
87                 <keyword>echo</keyword>\r
88                 <keyword>else</keyword>\r
89                 <keyword>elseif</keyword>\r
90                 <keyword>empty</keyword>\r
91                 <keyword>enddeclare</keyword>\r
92                 <keyword>endfor</keyword>\r
93                 <keyword>endforeach</keyword>\r
94                 <keyword>endif</keyword>\r
95                 <keyword>endswitch</keyword>\r
96                 <keyword>endwhile</keyword>\r
97                 <keyword>eval</keyword>\r
98                 <keyword>exit</keyword>\r
99                 <keyword>extends</keyword>\r
100                 <keyword>for</keyword>\r
101                 <keyword>foreach</keyword>\r
102                 <keyword>function</keyword>\r
103                 <keyword>global</keyword>\r
104                 <keyword>if</keyword>\r
105                 <keyword>include</keyword>\r
106                 <keyword>include_once</keyword>\r
107                 <keyword>isset</keyword>\r
108                 <keyword>list</keyword>\r
109                 <keyword>new</keyword>\r
110                 <keyword>print</keyword>\r
111                 <keyword>require</keyword>\r
112                 <keyword>require_once</keyword>\r
113                 <keyword>return</keyword>\r
114                 <keyword>static</keyword>\r
115                 <keyword>switch</keyword>\r
116                 <keyword>unset</keyword>\r
117                 <keyword>use</keyword>\r
118                 <keyword>var</keyword>\r
119                 <keyword>while</keyword>\r
120                 <keyword>__FUNCTION__</keyword>\r
121                 <keyword>__CLASS__</keyword>\r
122                 <keyword>__METHOD__</keyword>\r
123                 <keyword>final</keyword>\r
124                 <keyword>php_user_filter</keyword>\r
125                 <keyword>interface</keyword>\r
126                 <keyword>implements</keyword>\r
127                 <keyword>extends</keyword>\r
128                 <keyword>public</keyword>\r
129                 <keyword>private</keyword>\r
130                 <keyword>protected</keyword>\r
131                 <keyword>abstract</keyword>\r
132                 <keyword>clone</keyword>\r
133                 <keyword>try</keyword>\r
134                 <keyword>catch</keyword>\r
135                 <keyword>throw</keyword>\r
136                 <keyword>cfunction</keyword>\r
137                 <keyword>old_function</keyword>\r
138                 <keyword>true</keyword>\r
139                 <keyword>false</keyword>\r
140                 <ignoreCase />\r
141         </highlighter>\r
142         <highlighter type="word">\r
143                 <!-- highlight the php open and close tags as directives -->\r
144                 <word>?&gt;</word>\r
145                 <word>&lt;?php</word>\r
146                 <word>&lt;?=</word>\r
147                 <style>directive</style>\r
148         </highlighter>\r
149 </highlighters>