ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
HFile_idl.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_idl extends HFile
8 {
9 public function HFile_idl()
10 {
11 $this->HFile();
12 /*************************************/
13 // Beautifier Highlighting Configuration File
14 // IDL
15 /*************************************/
16 // Flags
17
18 $this->nocase = "1";
19 $this->notrim = "0";
20 $this->perl = "0";
21
22 // Colours
23
24 $this->colours = array("blue", "purple", "gray", "brown");
25 $this->quotecolour = "blue";
26 $this->blockcommentcolour = "green";
27 $this->linecommentcolour = "green";
28
29 // Indent Strings
30
31 $this->indent = array("{");
32 $this->unindent = array("}");
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 "any" => "1",
50 "attribute" => "1",
51 "boolean" => "1",
52 "context" => "1",
53 "exception" => "1",
54 "FALSE" => "1",
55 "in" => "1",
56 "inout" => "1",
57 "Object" => "1",
58 "octet" => "1",
59 "oneway" => "1",
60 "out" => "1",
61 "raises" => "1",
62 "readonly" => "1",
63 "sequence" => "1",
64 "string" => "1",
65 "TRUE" => "1",
66 "auto" => "2",
67 "break" => "2",
68 "case" => "2",
69 "char" => "2",
70 "const" => "2",
71 "continue" => "2",
72 "default" => "2",
73 "do" => "2",
74 "double" => "2",
75 "else" => "2",
76 "enum" => "2",
77 "extern" => "2",
78 "float" => "2",
79 "for" => "2",
80 "goto" => "2",
81 "if" => "2",
82 "int" => "2",
83 "long" => "2",
84 "register" => "2",
85 "return" => "2",
86 "short" => "2",
87 "signed" => "2",
88 "sizeof" => "2",
89 "static" => "2",
90 "struct" => "2",
91 "switch" => "2",
92 "typedef" => "2",
93 "union" => "2",
94 "unsigned" => "2",
95 "void" => "2",
96 "volatile" => "2",
97 "while" => "2",
98 "__asm" => "2",
99 "__fastcall" => "2",
100 "__self" => "2",
101 "__segment" => "2",
102 "__based" => "2",
103 "__segname" => "2",
104 "__fortran" => "2",
105 "__cdecl" => "2",
106 "__huge" => "2",
107 "__far" => "2",
108 "__saveregs" => "2",
109 "__export" => "2",
110 "__pascal" => "2",
111 "__near" => "2",
112 "__loadds" => "2",
113 "__interrupt" => "2",
114 "__inline" => "2",
115 "#define" => "2",
116 "#error" => "2",
117 "#include" => "2",
118 "#elif" => "2",
119 "#if" => "2",
120 "#line" => "2",
121 "#else" => "2",
122 "#ifdef" => "2",
123 "#pragma" => "2",
124 "#endif" => "2",
125 "#ifndef" => "2",
126 "#undef" => "2",
127 "class" => "3",
128 "delete" => "3",
129 "friend" => "3",
130 "inline" => "3",
131 "new" => "3",
132 "operator" => "3",
133 "private" => "3",
134 "protected" => "3",
135 "public" => "3",
136 "this" => "3",
137 "try" => "3",
138 "virtual" => "3",
139 "__multiple_inheritance" => "3",
140 "__single_inheritance" => "3",
141 "__virtual_inheritance" => "3",
142 "interface" => "4",
143 "module" => "4");
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 }
158
159
160 public function donothing($keywordin)
161 {
162 return $keywordin;
163 }
164 }
$BEAUT_PATH
Definition: HFile_idl.php:2
An exception for terminatinating execution or to throw for unit testing.
HFile_idl()
Definition: HFile_idl.php:9
donothing($keywordin)
Definition: HFile_idl.php:160