|
1 <?php |
|
2 /************************************************************************************* |
|
3 * properties.php |
|
4 * -------- |
|
5 * Author: Edy Hinzen |
|
6 * Copyright: (c) 2009 Edy Hinzen |
|
7 * Release Version: 1.0.8.4 |
|
8 * Date Started: 2009/04/03 |
|
9 * |
|
10 * Property language file for GeSHi. |
|
11 * |
|
12 * CHANGES |
|
13 * ------- |
|
14 * 2008/04/03 (1.0.0) |
|
15 * - First Release |
|
16 * |
|
17 * TODO |
|
18 * ------------------------- |
|
19 * |
|
20 ************************************************************************************* |
|
21 * |
|
22 * This file is part of GeSHi. |
|
23 * |
|
24 * GeSHi is free software; you can redistribute it and/or modify |
|
25 * it under the terms of the GNU General Public License as published by |
|
26 * the Free Software Foundation; either version 2 of the License, or |
|
27 * (at your option) any later version. |
|
28 * |
|
29 * GeSHi is distributed in the hope that it will be useful, |
|
30 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
31 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
32 * GNU General Public License for more details. |
|
33 * |
|
34 * You should have received a copy of the GNU General Public License |
|
35 * along with GeSHi; if not, write to the Free Software |
|
36 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
37 * |
|
38 ************************************************************************************/ |
|
39 |
|
40 $language_data = array ( |
|
41 'LANG_NAME' => 'PROPERTIES', |
|
42 'COMMENT_SINGLE' => array(1 => '#'), |
|
43 'COMMENT_MULTI' => array(), |
|
44 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, |
|
45 'QUOTEMARKS' => array('"'), |
|
46 'ESCAPE_CHAR' => '', |
|
47 'KEYWORDS' => array( |
|
48 /* Common used variables */ |
|
49 1 => array( |
|
50 '${user.home}' |
|
51 ), |
|
52 ), |
|
53 'SYMBOLS' => array( |
|
54 '[', ']', '=' |
|
55 ), |
|
56 'CASE_SENSITIVE' => array( |
|
57 GESHI_COMMENTS => false, |
|
58 1 => true |
|
59 ), |
|
60 'STYLES' => array( |
|
61 'KEYWORDS' => array( |
|
62 1 => 'font-weight: bold;', |
|
63 ), |
|
64 'COMMENTS' => array( |
|
65 1 => 'color: #808080; font-style: italic;' |
|
66 ), |
|
67 'ESCAPE_CHAR' => array( |
|
68 0 => '' |
|
69 ), |
|
70 'BRACKETS' => array( |
|
71 0 => '' |
|
72 ), |
|
73 'STRINGS' => array( |
|
74 0 => 'color: #933;' |
|
75 ), |
|
76 'NUMBERS' => array( |
|
77 0 => '' |
|
78 ), |
|
79 'METHODS' => array( |
|
80 0 => '' |
|
81 ), |
|
82 'SYMBOLS' => array( |
|
83 0 => 'color: #000000;' |
|
84 ), |
|
85 'REGEXPS' => array( |
|
86 0 => 'color: #000080; font-weight:bold;', |
|
87 1 => 'color: #008000; font-weight:bold;' |
|
88 ), |
|
89 'SCRIPT' => array( |
|
90 0 => '' |
|
91 ) |
|
92 ), |
|
93 'URLS' => array( |
|
94 1 => '' |
|
95 ), |
|
96 'OOLANG' => false, |
|
97 'OBJECT_SPLITTERS' => array( |
|
98 ), |
|
99 'REGEXPS' => array( |
|
100 //Entry names |
|
101 0 => array( |
|
102 GESHI_SEARCH => '^(\s*)([.a-zA-Z0-9_\-]+)(\s*=)', |
|
103 GESHI_REPLACE => '\\2', |
|
104 GESHI_MODIFIERS => 'm', |
|
105 GESHI_BEFORE => '\\1', |
|
106 GESHI_AFTER => '\\3' |
|
107 ), |
|
108 //Entry values |
|
109 1 => array( |
|
110 // Evil hackery to get around GeSHi bug: <>" and ; are added so <span>s can be matched |
|
111 // Explicit match on variable names because if a comment is before the first < of the span |
|
112 // gets chewed up... |
|
113 GESHI_SEARCH => '([<>";a-zA-Z0-9_]+\s*)=(.*)', |
|
114 GESHI_REPLACE => '\\2', |
|
115 GESHI_MODIFIERS => '', |
|
116 GESHI_BEFORE => '\\1=', |
|
117 GESHI_AFTER => '' |
|
118 ) |
|
119 ), |
|
120 'STRICT_MODE_APPLIES' => GESHI_NEVER, |
|
121 'SCRIPT_DELIMITERS' => array( |
|
122 ), |
|
123 'HIGHLIGHT_STRICT_BLOCK' => array( |
|
124 ) |
|
125 ); |
|
126 |
|
127 ?> |