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