ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_abb.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_abb extends HFile{
6  function HFile_abb(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // ABB Rapid Command
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", "purple", "gray", "brown", "blue", "purple", "gray", "brown");
21 $this->quotecolour = "blue";
22 $this->blockcommentcolour = "green";
23 $this->linecommentcolour = "green";
24 
25 // Indent Strings
26 
27 $this->indent = array("ELSE", "ELSEIF", "THEN", "DO");
28 $this->unindent = array("ENDIF", "ELSE", "ENDFOR", "ENDPROC", "ENDMODULE", "ENDWHILE", "ENDFOR", "ENDTEST");
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  "AccSet" => "1",
46  "Color1" => "1",
47  "DOutput" => "1",
48  "ERROR" => "1",
49  "GInput" => "1",
50  "GripLoad" => "1",
51  "MoveAbsJ" => "1",
52  "MoveC" => "1",
53  "MoveJ" => "1",
54  "MoveJDO" => "1",
55  "MoveL" => "1",
56  "MoveLDO" => "1",
57  "MotionSup" => "1",
58  "OpMode" => "1",
59  "PDispOff" => "1",
60  "PDispOn" => "1",
61  "PulseDO" => "1",
62  "Reset" => "1",
63  "SearchL" => "1",
64  "Set" => "1",
65  "SetGO" => "1",
66  "SpotL" => "1",
67  "SpotL_P1" => "1",
68  "SpotL_Z1" => "1",
69  "SpotL_Z2" => "1",
70  "TPErase" => "1",
71  "TPReadFK" => "1",
72  "TPWrite" => "1",
73  "TPWriteP1" => "1",
74  "TriggIO" => "1",
75  "TriggJ" => "1",
76  "TriggL" => "1",
77  "WaitTime" => "1",
78  "WaitUntil" => "1",
79  "Color2" => "2",
80  "Color3" => "3",
81  "bool" => "4",
82  "Color4" => "4",
83  "errnum" => "4",
84  "extjoint" => "4",
85  "jointtarget" => "4",
86  "loaddata" => "4",
87  "num" => "4",
88  "robjoint" => "4",
89  "robtarget" => "4",
90  "string" => "4",
91  "tooldata" => "4",
92  "triggdata" => "4",
93  "Color5" => "5",
94  "EXIT" => "5",
95  "GOTO" => "5",
96  "RETURN" => "5",
97  "RETRY" => "5",
98  "Stop" => "5",
99  "TRYNEXT" => "5",
100  "AND" => "6",
101  "CASE" => "6",
102  "Color6" => "6",
103  "CONST" => "6",
104  "DEFAULT" => "6",
105  "DO" => "6",
106  "ELSE" => "6",
107  "ELSEIF" => "6",
108  "ENDFOR" => "6",
109  "ENDIF" => "6",
110  "ENDMODULE" => "6",
111  "ENDPROC" => "6",
112  "ENDTEST" => "6",
113  "ENDWHILE" => "6",
114  "FOR" => "6",
115  "FROM" => "6",
116  "IF" => "6",
117  "MODULE" => "6",
118  "OR" => "6",
119  "PERS" => "6",
120  "PROC" => "6",
121  "TEST" => "6",
122  "THEN" => "6",
123  "TO" => "6",
124  "VAR" => "6",
125  "WHILE" => "6",
126  "Color7" => "7",
127  "Color8" => "8",
128  "*" => "8",
129  "#" => "8",
130  ";" => "8",
131  "," => "8",
132  "+" => "8",
133  "-" => "8",
134  "=" => "8",
135  "//" => "8",
136  "/" => "8",
137  "%" => "8",
138  "&" => "8",
139  ">" => "8",
140  "<" => "8",
141  "^" => "8",
142  "!" => "8",
143  "|" => "8");
144 
145 // Special extensions
146 
147 // Each category can specify a PHP function that returns an altered
148 // version of the keyword.
149 
150 
151 
152 $this->linkscripts = array(
153  "1" => "donothing",
154  "2" => "donothing",
155  "3" => "donothing",
156  "4" => "donothing",
157  "5" => "donothing",
158  "6" => "donothing",
159  "7" => "donothing",
160  "8" => "donothing");
161 }
162 
163 
164 function donothing($keywordin)
165 {
166  return $keywordin;
167 }
168 
169 }?>