ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
HFile_corba.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_corba extends HFile{
6  function HFile_corba(){
7  $this->HFile();
8 /*************************************/
9 // Beautifier Highlighting Configuration File
10 // CORBA IDL
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");
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  "boolean" => "1",
47  "case" => "1",
48  "char" => "1",
49  "const" => "1",
50  "default" => "1",
51  "double" => "1",
52  "enum" => "1",
53  "exception" => "1",
54  "FALSE" => "1",
55  "fixed" => "1",
56  "float" => "1",
57  "in" => "1",
58  "inout" => "1",
59  "long" => "1",
60  "Object" => "1",
61  "octet" => "1",
62  "oneway" => "1",
63  "out" => "1",
64  "raises" => "1",
65  "readonly" => "1",
66  "sequence" => "1",
67  "short" => "1",
68  "string" => "1",
69  "struct" => "1",
70  "switch" => "1",
71  "TRUE" => "1",
72  "typedef" => "1",
73  "unsigned" => "1",
74  "union" => "1",
75  "void" => "1",
76  "wchar" => "1",
77  "wstring" => "1",
78  "attribute" => "2",
79  "context" => "2",
80  "interface" => "2",
81  "module" => "2",
82  "#define" => "3",
83  "#error" => "3",
84  "#include" => "3",
85  "#elif" => "3",
86  "#if" => "3",
87  "#line" => "3",
88  "#else" => "3",
89  "#ifdef" => "3",
90  "#pragma" => "3",
91  "#endif" => "3",
92  "#ifndef" => "3",
93  "#undef" => "3",
94  "#" => "3",
95  "##" => "3",
96  "!" => "3",
97  "||" => "3",
98  "&&" => "3",
99  ";" => "4",
100  "{" => "4",
101  "}" => "4",
102  ":" => "4",
103  "," => "4",
104  "=" => "4",
105  "+" => "4",
106  "-" => "4",
107  "(" => "4",
108  ")" => "4",
109  "<" => "4",
110  ">" => "4",
111  "[" => "4",
112  "]" => "4",
113  "'" => "4",
114  "\"" => "4",
115  "\\" => "4",
116  "^" => "4",
117  "*" => "4",
118  "/" => "4",
119  "%" => "4",
120  "~" => "4");
121 
122 // Special extensions
123 
124 // Each category can specify a PHP function that returns an altered
125 // version of the keyword.
126 
127 
128 
129 $this->linkscripts = array(
130  "1" => "donothing",
131  "2" => "donothing",
132  "3" => "donothing",
133  "4" => "donothing");
134 }
135 
136 
137 function donothing($keywordin)
138 {
139  return $keywordin;
140 }
141 
142 }?>