ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_palmrsc.php
Go to the documentation of this file.
1 <?php
2 $BEAUT_PATH = realpath(".")."/Services/COPage/syntax_highlight/php";
3 if (!isset ($BEAUT_PATH)) return;
4 require_once("$BEAUT_PATH/Beautifier/HFile.php");
5  class HFile_palmrsc extends HFile{
6  function HFile_palmrsc(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // Palm Pilot Resource Script
11 /*************************************/
12 // Flags
13 
14 $this->nocase = "0";
15 $this->notrim = "0";
16 $this->perl = "0";
17 
18 // Colours
19 
20 $this->colours = array("blue", "gray", "purple", "brown");
21 $this->quotecolour = "blue";
22 $this->blockcommentcolour = "green";
23 $this->linecommentcolour = "green";
24 
25 // Indent Strings
26 
27 $this->indent = array("BEGIN");
28 $this->unindent = array("END");
29 
30 // String characters and delimiters
31 
32 $this->stringchars = array("\"", "'");
33 $this->delimiters = array("%", "*", "(", ")", "-", "+", "\\", "\"", "'", ",", " ", ".", "?");
34 $this->escchar = "";
35 
36 // Comment settings
37 
38 $this->linecommenton = array("//");
39 $this->blockcommenton = array("/*");
40 $this->blockcommentoff = array("*/");
41 
42 // Keywords (keyword mapping to colour number)
43 
44 $this->keywords = array(
45  "ALERT" => "1",
46  "APPLICATION" => "1",
47  "APPLICATIONICONNAME" => "1",
48  "AT" => "1",
49  "BEGIN" => "1",
50  "BITMAP" => "1",
51  "BITMAPCOLOR" => "1",
52  "BITMAPFAMILY" => "1",
53  "BITMAPGREY" => "1",
54  "BITMAPGREY16" => "1",
55  "CATEGORIES" => "1",
56  "END" => "1",
57  "FONT" => "3",
58  "FORM" => "1",
59  "ICON" => "1",
60  "ICONFAMILY" => "1",
61  "ID" => "1",
62  "MENU" => "1",
63  "SMALLICON" => "1",
64  "SMALLICONFAMILY" => "1",
65  "STRING" => "1",
66  "TRANSLATION" => "1",
67  "TRAP" => "1",
68  "VERSION" => "1",
69  "BUTTON" => "2",
70  "BUTTONS" => "2",
71  "CHECKBOX" => "2",
72  "FIELD" => "2",
73  "FORMBITMAP" => "2",
74  "GADGET" => "2",
75  "GRAFFITISTATEINDICATOR" => "2",
76  "LABEL" => "2",
77  "LIST" => "2",
78  "MESSAGE" => "2",
79  "POPUPLIST" => "2",
80  "POPUPTRIGGER" => "2",
81  "PUSHBUTTON" => "2",
82  "REPEATBUTTON" => "2",
83  "SCROLLBAR" => "2",
84  "SELECTORTRIGGER" => "2",
85  "TABLE" => "2",
86  "TITLE" => "2",
87  "AUTO" => "3",
88  "AUTOSHIFT" => "3",
89  "BOLDFRAME" => "3",
90  "BOTTOM" => "3",
91  "CENTER" => "3",
92  "CHECKED" => "3",
93  "COLUMNS" => "3",
94  "COLUMNWIDTHS" => "3",
95  "DISABLED" => "3",
96  "DYNAMICSIZE" => "3",
97  "DEFAULTBUTTON" => "3",
98  "EDITABLE" => "3",
99  "ERROR" => "3",
100  "FRAME" => "3",
101  "GROUP" => "3",
102  "HASSCROLLBAR" => "3",
103  "LEFTALIGN" => "3",
104  "LEFTANCHOR" => "3",
105  "MAX" => "3",
106  "MAXCHARS" => "3",
107  "MIN" => "3",
108  "MULTIPLELINES" => "3",
109  "MODAL" => "3",
110  "NOFRAME" => "3",
111  "NONEDITABLE" => "3",
112  "NONUSABLE" => "3",
113  "NUMERIC" => "3",
114  "PAGESIZE" => "3",
115  "PREVBOTTOM" => "3",
116  "PREVHEIGHT" => "3",
117  "PREVLEFT" => "3",
118  "PREVRIGHT" => "3",
119  "PREVTOP" => "3",
120  "PREVWIDTH" => "3",
121  "RIGHT@" => "3",
122  "RIGHTALIGN" => "3",
123  "RIGHTANCHOR" => "3",
124  "ROWS" => "3",
125  "SINGLELINE" => "3",
126  "TRANSPARENCY" => "3",
127  "UNDERLINED" => "3",
128  "USABLE" => "3",
129  "VALUE" => "3",
130  "VISIBLEITEMS" => "3",
131  "MENUID" => "4",
132  "HELPID" => "4",
133  "AUTOID" => "4",
134  "@" => "4",
135  "+" => "4",
136  "-" => "4",
137  "*" => "4");
138 
139 // Special extensions
140 
141 // Each category can specify a PHP function that returns an altered
142 // version of the keyword.
143 
144 
145 
146 $this->linkscripts = array(
147  "1" => "donothing",
148  "3" => "donothing",
149  "2" => "donothing",
150  "4" => "donothing");
151 }
152 
153 
154 function donothing($keywordin)
155 {
156  return $keywordin;
157 }
158 
159 }?>