ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_idl.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_idl extends HFile{
6  function HFile_idl(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // IDL
11 /*************************************/
12 // Flags
13 
14 $this->nocase = "1";
15 $this->notrim = "0";
16 $this->perl = "0";
17 
18 // Colours
19 
20 $this->colours = array("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("{");
28 $this->unindent = array("}");
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  "any" => "1",
46  "attribute" => "1",
47  "boolean" => "1",
48  "context" => "1",
49  "exception" => "1",
50  "FALSE" => "1",
51  "in" => "1",
52  "inout" => "1",
53  "Object" => "1",
54  "octet" => "1",
55  "oneway" => "1",
56  "out" => "1",
57  "raises" => "1",
58  "readonly" => "1",
59  "sequence" => "1",
60  "string" => "1",
61  "TRUE" => "1",
62  "auto" => "2",
63  "break" => "2",
64  "case" => "2",
65  "char" => "2",
66  "const" => "2",
67  "continue" => "2",
68  "default" => "2",
69  "do" => "2",
70  "double" => "2",
71  "else" => "2",
72  "enum" => "2",
73  "extern" => "2",
74  "float" => "2",
75  "for" => "2",
76  "goto" => "2",
77  "if" => "2",
78  "int" => "2",
79  "long" => "2",
80  "register" => "2",
81  "return" => "2",
82  "short" => "2",
83  "signed" => "2",
84  "sizeof" => "2",
85  "static" => "2",
86  "struct" => "2",
87  "switch" => "2",
88  "typedef" => "2",
89  "union" => "2",
90  "unsigned" => "2",
91  "void" => "2",
92  "volatile" => "2",
93  "while" => "2",
94  "__asm" => "2",
95  "__fastcall" => "2",
96  "__self" => "2",
97  "__segment" => "2",
98  "__based" => "2",
99  "__segname" => "2",
100  "__fortran" => "2",
101  "__cdecl" => "2",
102  "__huge" => "2",
103  "__far" => "2",
104  "__saveregs" => "2",
105  "__export" => "2",
106  "__pascal" => "2",
107  "__near" => "2",
108  "__loadds" => "2",
109  "__interrupt" => "2",
110  "__inline" => "2",
111  "#define" => "2",
112  "#error" => "2",
113  "#include" => "2",
114  "#elif" => "2",
115  "#if" => "2",
116  "#line" => "2",
117  "#else" => "2",
118  "#ifdef" => "2",
119  "#pragma" => "2",
120  "#endif" => "2",
121  "#ifndef" => "2",
122  "#undef" => "2",
123  "class" => "3",
124  "delete" => "3",
125  "friend" => "3",
126  "inline" => "3",
127  "new" => "3",
128  "operator" => "3",
129  "private" => "3",
130  "protected" => "3",
131  "public" => "3",
132  "this" => "3",
133  "try" => "3",
134  "virtual" => "3",
135  "__multiple_inheritance" => "3",
136  "__single_inheritance" => "3",
137  "__virtual_inheritance" => "3",
138  "interface" => "4",
139  "module" => "4");
140 
141 // Special extensions
142 
143 // Each category can specify a PHP function that returns an altered
144 // version of the keyword.
145 
146 
147 
148 $this->linkscripts = array(
149  "1" => "donothing",
150  "2" => "donothing",
151  "3" => "donothing",
152  "4" => "donothing");
153 }
154 
155 
156 function donothing($keywordin)
157 {
158  return $keywordin;
159 }
160 
161 }?>